/* ============================
    ZÁKLADNÍ STYLY A PROMĚNNÉ
============================ */
:root {
  --cream: #fffaf2;
  --text-dark: #4a3a2f;
  --accent: #a7c1b4;
  --highlight: #f6eec9;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Nunito', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* ============================
    FONTY
============================ */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ============================
   ZÁHLAVÍ A ÚVOD
============================ */
header {
  background-image: url("images/kytky_background.webp");
  background-repeat: repeat;
  background-size: contain;
  background-position: top;
  background-color: var(--cream);
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
}

.intro-illustration img {
  max-width: 120px;
  margin-bottom: 1rem;
  margin-left: 16px;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
}


/* ============================
    TLAČÍTKA
============================ */
.btn {
  background-color: var(--highlight);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  color: var(--text-dark);
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #a0cbb5;
}

.theme-toggle-wrapper {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

/* switch container */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

/* hide default checkbox */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background-color 0.3s;
  background-color: #333;
  border-radius: 34px;
  background-image: url('images/moon.svg');
  background-repeat: no-repeat;
  background-position: right center;  /* klíčová část */
  background-size: 28px 28px;
  padding-right: 6px;
   
}


/* kulaté kolečko (měsíc/slunce) */
.slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* stav zapnuto (tmavý režim) */
.theme-switch input:checked + .slider {
  background-color: #222;
  background-position: left center;
}

/* posun kolečka doprava */
.theme-switch input:checked + .slider:before {
  transform: translateX(28px);
}


/* ============================
    OBECNÉ SEKCÍ STYLY
============================ */
section {
  padding: 4rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

#about h2,
#services h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}


/* ============================
    SEKCE O MNĚ
============================ */
.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-content img {
  max-width: 120px;
}


/* ============================
    SLUŽBY
============================ */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-box {
  background-color: #f6f8f3;
  border-radius: 12px;
  padding: 1.5rem;
  width: 180px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.service-box img {
  max-height: 60px;
  margin-bottom: 1rem;
}


/* ============================
    GALERIE / CAROUSEL
============================ */
#gallery {
  margin: 4rem auto;
  max-width: 960px;
  padding: 0 1rem;
}

.swiper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;

  /* Zákaz výběru a tažení */
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.swiper *,
.swiper-slide {
  user-select: none;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
  transition: filter 1.2s ease, transform 1.2s ease;
}

/* Efekt rozsvícení aktivního obrázku */
.swiper-slide-active img {
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
  transform: scale(1.01);
  animation: svetelnyZablesk 3s ease-in-out;
}

@keyframes svetelnyZablesk {
  0%   { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
  50%  { box-shadow: inset 0 0 80px rgba(255, 255, 210, 0.4); }
  100% { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
}


/* ============================
    SLUNEČNÍ PAGINACE
============================ */
.sun-pagination {
  text-align: center;
  margin-top: 1rem;
}

.sun-pagination .ray {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #e6ba3c, #d4a831);
  box-shadow: 0 0 0 rgba(255, 223, 100, 0.5);
  transition: all 0.3s ease-in-out;
  opacity: 0.5;
}

.sun-pagination .ray.active {
  box-shadow: 0 0 10px 5px rgba(255, 223, 100, 0.8);
  opacity: 1;
  transform: scale(1.2);
}


/* ============================
    ILUSTRACE A SVĚTLO
============================ */
.icon {
  width: 60px;
  height: 60px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pastel-chair   { stroke: #789b9e; }
.pastel-frame   { stroke: #d1a95f; }
.pastel-sun     { stroke: #e6ba3c; }
.pastel-portrait{ stroke: #936f58; }

#svetlo {
  animation: blikani 1s infinite;
}

@keyframes blikani {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}


/* ============================
    PATIČKA
============================ */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #f3f3f3;
  font-size: 0.9rem;
}

.site-notice {
  background-color: #ffeeba;
  color: #856404;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #ffd966;
}

/* Sociální ikony */
.social-instagram {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border-radius:50%;
  background:#262b2e;               /* kruhové pozadí */
  color:#f2f2f2;                    /* barva ikony */
  transition:transform 0.3s, background 0.3s;
}
.social-instagram:hover,
.social-instagram:focus {
  background:#e6ba3c;               /* highlight barva */
  color:#1a1a1a;
  transform:scale(1.1);
}
