/* --------------------------------------------------------------------------
   Design System & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --clr-primary: #b36051;
  --clr-primary-hover: #8c4b40;
  --clr-secondary: #c8a165;
  --clr-text: #010101;
  --clr-bg-light: #fffaf7;
  /* very light background for hero/general */
  --clr-bg-section: #ebe2d6;
  /* light background */
  --clr-bg-darker: #e6ded4;
  /* darker background */
  --clr-white: #ffffff;

  /* Typography */
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Quicksand', sans-serif;

  --fs-base: 1.25rem;
  /* 20px base */
  --lh-body: 1.6;

  /* Fluid typography for headings (clamp) */
  --fs-h1: clamp(2rem, 3.8vw, 3.2rem);
  --fs-h2: clamp(1.5rem, 2.8vw, 2.2rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h4: clamp(1.25rem, 2vw, 1.5rem);

  /* Spacing (8px scale) */
  --sp-1: 0.5rem;
  /* 8px */
  --sp-2: 1rem;
  /* 16px */
  --sp-3: 1.5rem;
  /* 24px */
  --sp-4: 2rem;
  /* 32px */
  --sp-5: 3rem;
  /* 48px */
  --sp-6: 4rem;
  /* 64px */
  --sp-8: 6rem;
  /* 96px */
  --sp-10: 8rem;
  /* 128px */

  /* Wave dividers: --curve-h* is the visual SVG height; --curve-pad* is the
     (smaller) section padding that just covers the wave's actual deepest
     point, so it never overlaps a heading without leaving a huge gap. */
  --curve-h: 120px;
  --curve-h-bottom: 140px;
  --curve-h-footer: 130px;
  --curve-pad: 120px;
  --curve-pad-bottom: 125px;
  --curve-pad-footer: 130px;
}

@media (min-width: 768px) {
  :root {
    --curve-h: 170px;
    --curve-h-bottom: 195px;
    --curve-h-footer: 200px;
    --curve-pad: 165px;
    --curve-pad-bottom: 170px;
    --curve-pad-footer: 190px;
  }
}

:root {
  /* Layout */
  --container-width: 85%;
  --max-width: 1400px;
  --border-radius: 12px;
  --transition: 0.3s ease-in-out;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--clr-text);
  background-color: var(--clr-bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Chrání proti přesahu full-bleed prvků (100vw) */
}

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

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-primary-hover);
}

ul {
  list-style: none;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
  color: var(--clr-text);
}

h1 {
  font-size: var(--fs-h1);
  color: var(--clr-primary);
}

h2 {
  font-size: var(--fs-h2);
  color: var(--clr-primary);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

/* Výjimka: h2 v patičce (cihlové pozadí) zůstane bílé */
footer h2 {
  color: var(--clr-white);
}

p {
  margin-bottom: var(--sp-3);
  max-width: 70vw;
  /* Text readability width */
}

@media (max-width: 768px) {
  p {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Layout & Components
   -------------------------------------------------------------------------- */
.container {
  width: var(--container-width);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--sp-8) 0;
}

.section-bg {
  background-color: var(--clr-bg-section);
}

#o-mne {
  padding-bottom: var(--curve-pad);
}

#cenik {
  padding-top: var(--curve-pad-bottom);
  padding-bottom: var(--curve-pad-footer);
}

.section-curved {
  position: relative;
  padding-top: 0;
  padding-bottom: var(--sp-6);
}

.section-curve {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.section-curve svg {
  display: block;
  width: 100%;
  height: var(--curve-h);
}

.section-curve-bottom svg {
  height: var(--curve-h-bottom);
}

.section-curve path {
  fill: var(--clr-bg-section);
}

.section-curve-top {
  top: 0;
  transform: translateY(calc(-100% + 2px));
}

.section-curve-bottom {
  bottom: 0;
  transform: translateY(calc(100% - 2px));
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

#reference .grid-2 {
  position: relative;
  z-index: 0;
}

#reference .grid-2::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: url("../Obrazky/grafika/grafika-3.png");
  background-repeat: repeat;
  background-size: 70px auto;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--clr-primary);
  color: var(--clr-white);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn:hover {
  background-color: var(--clr-primary-hover);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--clr-secondary);
  border: 2px solid var(--clr-secondary);
  color: var(--clr-white);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--clr-secondary);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
/* Hero Section */
.hero {
  position: relative;
  z-index: 0;
  padding: var(--sp-5) 0;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero {
    padding: var(--sp-4) 0 var(--sp-5) 0;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

@media (min-width: 992px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--sp-6) + 0.5rem);
  }

  .hero-image-wrap {
    flex: 1.6;
    /* fotka dominantní */
  }

  .hero-text {
    flex: 1;
  }
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Původní bezpečná velikost rámu */
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  /* Udrží čtvercový poměr */
}

.hero-image {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobMorph 6s ease-in-out infinite alternate;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* Ořízne zvětšený obrázek */
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-petals {
  position: absolute;
  width: 26%;
  max-width: 150px;
  z-index: -1;
  pointer-events: none;
}

.hero-petals-tr {
  top: 2%;
  right: -6%;
}

.hero-petals-bl {
  bottom: 6%;
  left: -8%;
  width: 20%;
  max-width: 115px;
  transform: rotate(180deg);
}

.hero-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.28);
  /* Přiblíží pouze obsah uvnitř rámu */
  transform-origin: 33% 25%;
}

@keyframes blobMorph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-text h1 {
  margin-bottom: var(--sp-2);
}

.hero-text h1 .nowrap {
  white-space: nowrap;
}

.pc-only {
  display: none;
}

@media (min-width: 992px) {
  .pc-only {
    display: block;
  }
}

.hero-subtitle {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: var(--sp-4);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 2.1rem;
  }
}

.hero-subtitle-underline {
  display: block;
  width: 100%;
  height: auto;
  margin: -0.5rem 0 0;
}

@media (min-width: 992px) {
  .hero-subtitle-underline {
    width: 80%;
    max-width: 360px;
  }
}

.footer-subtitle-underline {
  display: block;
  width: 50%;
  height: auto;
  margin: 0.25rem 0 var(--sp-4) 1.5rem;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .footer-subtitle-underline {
    width: 70%;
  }
}

/* About Section – sticky scroll efekt: fotka zůstává na místě, text
   pod nadpisem se sune dolů podél fotky (vyplňuje prázdné místo) a
   až se srovná se spodkem fotky, obě se spolu odscrolují pryč.
   Výšku doplňku (padding) a posun textu (transform) počítá JS – viz main.js */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-text-col {
    position: sticky;
    top: var(--sp-4);
    align-self: start;
  }

  .about-text-inner {
    will-change: transform;
  }

  .about-img-wrapper {
    position: sticky;
    top: var(--sp-4);
    align-self: start;
  }
}

.about-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-img-wrapper picture {
  width: 100%;
}

.about-img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 380px;
  display: block;
  margin: 0 auto;
}

/* Services (Spolupráce) */
#spoluprace {
  padding-top: var(--sp-5);
}

#spoluprace h2 {
  margin-bottom: var(--sp-6);
}

.service-card {
  background-color: var(--clr-white);
  padding: var(--sp-4);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 2px solid var(--clr-primary);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service-featured {
  border-color: var(--clr-secondary);
}

.service-card h3 {
  font-size: var(--fs-base);
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}

/* Testimonials (Reference) */
.testimonial-card {
  background-color: var(--clr-bg-light);
  padding: var(--sp-4);
  border-radius: var(--border-radius);
  position: relative;
  border-left: 4px solid var(--clr-secondary);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.testimonial-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.testimonial-author {
  font-weight: 700;
  margin-top: var(--sp-3);
  color: var(--clr-secondary);
  text-align: right;
}

.testimonial-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logos-container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: var(--sp-8);
  row-gap: var(--sp-5);
}

.logos-container img {
  max-height: 50px;
  max-width: 100%;
  transition: all var(--transition);
}

.logos-container img.logo-small {
  max-height: 34px;
}

.logos-container img.logo-large {
  max-height: 92px;
}

.logos-container img:hover {
  transform: scale(1.05);
}

.logos-container img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .logos-row {
    flex-direction: column;
  }
}

/* Pricing (Ceník) */
.pricing-card {
  background-color: var(--clr-white);
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.pricing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.pricing-card h3 {
  color: var(--clr-text);
  font-size: var(--fs-h4);
}

.pricing-price {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--clr-primary);
  margin: var(--sp-2) 0;
  font-family: var(--font-heading);
}

.pricing-card p {
  max-width: 100%;
  margin: 0 auto var(--sp-4) auto;
  text-align: left;
}

.pricing-featured {
  border: 2px solid var(--clr-secondary);
}

.pricing-featured {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.pricing-featured h3 {
  color: var(--clr-text);
}

.pricing-featured .pricing-price {
  color: var(--clr-secondary);
}

/* Úvodní text sekce ceníku */
.cenik-intro-group {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cenik-intro {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  text-align: left;
}

.cenik-intro-text {
  flex: 1;
  min-width: 0;
}

.cenik-intro-text p:last-child {
  margin-bottom: 0;
}

/* Footer (Kontakt) */
footer {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  padding: var(--sp-5) 0 var(--sp-4) 0;
  position: relative;
  z-index: 0;
  margin-top: 60px;
}

@media (min-width: 768px) {
  footer {
    margin-top: 100px;
  }
}

.footer-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(calc(-100% + 2px));
  z-index: 10;
}

.footer-curve svg {
  position: relative;
  display: block;
  width: 100%;
  height: var(--curve-h-footer);
}

.footer-curve path {
  fill: var(--clr-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-contact {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.footer-contact h2 {
  color: var(--clr-white);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-white);
}

.contact-link:hover {
  color: var(--clr-secondary);
}

.contact-link i {
  color: var(--clr-secondary);
}

.footer-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .footer-img-wrapper {
    padding: 10% 18% 0 18%;
  }
}

@media (min-width: 768px) {
  .footer-img-wrapper {
    padding: 40px 70px 0 70px;
  }
}

.footer-img-frame {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
}

.footer-img-frame picture img {
  display: block;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobMorph 6s ease-in-out infinite alternate;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .footer-img-frame {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.footer-img-frame .hero-petals-tr {
  top: -8%;
  right: -14%;
}

.footer-legal {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  color: var(--clr-white);
  opacity: 0.8;
}

.sub-footer {
  background-color: var(--clr-primary-hover);
  color: var(--clr-white);
  text-align: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem;
}

.sub-footer p {
  max-width: 100%;
  margin: 0;
}

.sub-footer a {
  color: var(--clr-white);
  text-decoration: underline;
}

.sub-footer a:hover {
  color: var(--clr-secondary);
}

/* Helper Classes */
.text-center {
  text-align: center;
}

h2.text-center {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.mb-2 {
  margin-bottom: var(--sp-2);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.mt-4 {
  margin-top: var(--sp-4);
}