/* ==========================================================================
   L.A. CREATIVITY — responsive.css
   Breakpoints: 1600 / 1440 / 1024 / 768 / 480 / 360
   ========================================================================== */

/* Large desktop refinement */
@media (max-width: 1600px) {
  :root { --container-width: 1180px; }
}

@media (max-width: 1440px) {
  :root { --container-pad: 2rem; }
}

/* ---------- Tablet: 1024px ---------- */
/* narrower desktops: the English menu is longer, keep the e-mail button inside the screen */
@media (max-width: 1250px) {
  .nav__list { gap: 1.6rem; }
  .header__inner { gap: var(--sp-3); }
}

@media (max-width: 1024px) {
  :root {
    --fs-h1: 2.6rem;
    --fs-h2: 2rem;
    --sp-7: 4.5rem;
    --sp-8: 6rem;
  }

  .nav__list { gap: 1.1rem; }
  .nav__link { letter-spacing: 0.16em; }
  .header__inner { gap: var(--sp-3); }
  .header__actions { gap: var(--sp-2); }

  .hero__inner { gap: var(--sp-4); }
  .hero__logo-full { width: min(323px, 100%); }
  .hero__content { width: min(340px, 100%); }

  .services__inner { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .services__item:nth-child(2n+1) { border-left: none; }
  .services__item:nth-child(-n+4) { padding-bottom: var(--sp-4); }

  .viz-carousel { --viz-card-w: 420px; --viz-card-h: 250px; --viz-radius: 600px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__image-wrap { height: 420px; }
  .about__content { padding: var(--sp-6) var(--sp-4); }

  .author__inner { grid-template-columns: 1fr; row-gap: 0; }
  .author__heading, .author__text, .author__photo { grid-column: 1; grid-row: auto; }
  .author__text { margin-top: var(--sp-4); }
  .process__inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .process__steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--sp-5); }
  .process__steps::before,
  .process__steps::after { display: none; }

  .testimonials__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .testimonial { border-left: none; border-top: 1px solid rgba(169, 131, 47, 0.3); padding: var(--sp-4) 0 0; }
  .testimonial:first-child { border-top: none; padding-top: 0; }

  .footer__bar { gap: var(--sp-3); }
  .footer__bar > * + * { padding-left: var(--sp-3); }

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

/* ---------- Tablet small / large mobile: 768px ---------- */
@media (max-width: 768px) {
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .header__inner { gap: var(--sp-2); }
  .hamburger, .header__actions { flex-shrink: 0; }
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--color-navy);
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: var(--sp-8) var(--sp-4) var(--sp-4);
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .nav__link { color: var(--color-text-on-navy); }
  .nav__link--active { color: var(--color-gold-light); }

  .nav__mobile-cta {
    display: inline-flex;
    margin-top: var(--sp-4);
    align-self: flex-start;
  }
  .nav__list { display: flex; }
  .nav { display: flex; flex-direction: column; }

  .hero { padding-top: calc(var(--sp-6) + var(--sp-3)); }
  .hero__content { width: 100%; max-width: 100%; }
  .hero__inner { transform: none; }
  /* on narrow screens the cropped slide art sits right behind the copy,
     so a soft cream glow (no visible edge) lifts the text off the drawing */
  .hero__content { isolation: isolate; }
  .hero__content::before {
    content: '';
    position: absolute;
    inset: 8% -14% 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 55%,
      rgba(242, 234, 217, 0.96) 0%,
      rgba(242, 234, 217, 0.88) 45%,
      rgba(242, 234, 217, 0) 78%);
    /* fade the glow out at its lower edge so it doesn't brighten
       the hero's navy fade into the next section */
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 90%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 90%);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  /* shift the horse slide right so its head clears the logo */
  .hero__slide[style*="hero-slide-2a"] { background-position: 38% center; }
  /* nudge its caption left and down so it sits inside the glow */
  .hero__copy--alt--stack-center .hero__title { transform: translate(-1.5rem, 2.5rem); }
  /* "Osobní značku" is baked into the art: shrink the slide so the whole word
     fits the screen and drop it below the "budujte s námi svou" caption;
     the strip above is filled with the art's own paper tone; the art is
     230% × 0.5885 aspect = 135.36vw tall, and from just under the lettering
     (80% of it) to 95% it fades out into navy instead of showing its pale
     bottom waves and a hard edge */
  .hero__slide[style*="hero-slide-3b"] {
    background-color: #f6efe9;
    background-size: 230% auto;
    background-position: 32% 230px;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(230px + 108.3vw), transparent calc(230px + 128.6vw));
    mask-image: linear-gradient(to bottom, #000 calc(230px + 108.3vw), transparent calc(230px + 128.6vw));
  }
  /* under that faded edge, show the same art without lettering at full size
     (only its bottom waves), so the slide runs into the section fade like
     the others; crossfades along with the slide itself */
  .hero__slides::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-slide-3a.webp') center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(230px + 108.3vw), #000 calc(230px + 128.6vw));
    mask-image: linear-gradient(to bottom, transparent calc(230px + 108.3vw), #000 calc(230px + 128.6vw));
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
  }
  .hero__slides:has(.hero__slide[style*="hero-slide-3b"].is-active)::before { opacity: 1; }
  /* keyed to the slide image (not its caption, which lands 1.6s later),
     so the glow is already gone when the "osobní značku" art fades in */
  .hero:has(.hero__slide[data-caption-variant="compact"].is-active) .hero__content::before { opacity: 0; }
  /* and a smaller glow that follows the caption, keeping clear of the horse */
  .hero__content:has(.hero__copy--alt--stack-center:not([hidden]))::before {
    transform: translate(-1.5rem, calc(2.5rem - 20%)) scale(0.8);
  }  .hero__content .hero__title,
  .hero__content .hero__subtitle,
  .hero__content .hero__text {
    text-shadow: 0 0 10px rgba(242, 234, 217, 0.95), 0 0 22px rgba(242, 234, 217, 0.8);
  }
  /* the paragraph sits lowest, where the glow above is masked out and the
     navy fade begins, so it gets its own frosted-glass panel instead */
  .hero__content .hero__text {
    padding: var(--sp-2) var(--sp-3);
    background: rgba(242, 234, 217, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 162, 75, 0.35);
    border-radius: 14px;
    text-shadow: none;
  }

  .services__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .services__item { border-left: none !important; border-top: 1px solid rgba(201, 162, 75, 0.25); padding: var(--sp-4) 0 0; }
  .services__item:first-child { border-top: none; padding-top: 0; }

  .viz-carousel {
    --viz-card-w: 340px;
    --viz-card-h: 202px;
    --viz-radius: 330px;
    --viz-pop: 1.22;
  }

  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .author { padding: var(--sp-5) 0 var(--sp-3); }
  .author__heading { text-align: center; padding: var(--sp-3) 0 0; }
  .author__heading::before { left: 50%; top: -1px; bottom: auto; width: 62px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
  .author__eyebrow { justify-content: center; }
  .author__eyebrow::after { display: none; }
  .author__text { margin: var(--sp-4) auto 0; }
  .process__heading { text-align: center; padding: var(--sp-3) 0 0; }
  .process__heading::before { left: 50%; top: -1px; bottom: auto; width: 62px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
  .process__eyebrow { justify-content: center; }
  .process__eyebrow::after { display: none; }
  .process__heading-rule { margin-left: auto; margin-right: auto; }

  .footer__bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--sp-3);
  }
  .footer__bar > * + * {
    border-left: none;
    border-top: 1px solid rgba(201, 162, 75, 0.18);
    padding-left: 0;
    padding-top: var(--sp-3);
    width: 100%;
  }
  .footer__contact { align-items: center; }
  /* on mobile the legal links + copyright close the page, below the contacts */
  .footer__center { order: 1; }
}

/* ---------- Mobile: 480px ---------- */
@media (max-width: 480px) {
  :root {
    --container-pad: 1.25rem;
    --fs-h1: 2.1rem;
    --fs-h2: 1.65rem;
    --sp-6: 3rem;
    --sp-7: 3.5rem;
  }

  .header__inner { padding: var(--sp-2) var(--container-pad); }
  .header__logo-name { font-size: 0.92rem; }

  .hero__logo-full { width: min(219px, 100%); }

  .btn { padding: 0.95em 1.6em; font-size: 0.7rem; }

  .about__image-wrap { height: 320px; }
  .about__watermark { width: 160px; }

  .viz-carousel {
    --viz-card-w: 262px;
    --viz-card-h: 160px;
    --viz-radius: 250px;
  }
  .viz-slide__label { font-size: 1.15rem; }

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

  .contact-page { padding-top: calc(var(--sp-7) + var(--sp-5)); }
  .contact-page__info { padding-left: var(--sp-3); }
  .contact-form { padding: var(--sp-4) var(--sp-3); }
  .contact-form__grid { grid-template-columns: 1fr; }

  .footer__logo { flex-direction: column; text-align: center; }
  .footer__logo-sub { letter-spacing: 0.16em; }
}

/* ---------- Small mobile: 360px ---------- */
@media (max-width: 360px) {
  :root { --container-pad: 1rem; }
  .hero__logo-full { width: min(181px, 100%); }
  .testimonial__text { font-size: 0.95rem; }
}

/* ---------- Services page: stack image above text ---------- */
@media (max-width: 900px) {
  .svc__item { grid-template-columns: 1fr; gap: var(--sp-4); padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
  .svc__item--flip .svc__media { order: 0; }
  .svc > .svc__item:first-child { padding-top: calc(var(--sp-6) / 2); }
  .svc__fold.is-visible .svc__fold-curl { width: 60px; height: 60px; }
  /* category links stack into a centred list; separators would dangle at line starts */
  .svc-hero__nav { flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: 18px; }
  .svc-hero__nav li + li::before { display: none; }
  /* keep the stacked links clear of the fade into navy at the bottom */
  .svc-hero { padding-bottom: calc(var(--sp-7) + var(--sp-4)); }
  /* text spans the full width here, so the glow behind it stays wide */
  .svc-hero {
    background-image:
      radial-gradient(ellipse 40% 42% at 50% 55%, rgba(247, 241, 228, 0.92) 0%, rgba(247, 241, 228, 0.7) 55%, transparent 100%),
      url('../images/hero-services.webp');
  }
}
@media (max-width: 480px) {
  .svc__pricelist { padding: var(--sp-2); }
  .svc__price { font-size: 0.85rem; }
  .svc-hero { padding-top: calc(var(--sp-7) + var(--sp-3)); }
}

/* ---------- Narrow phones: make room for the CZ | EN switch next to the menu button ---------- */
@media (max-width: 400px) {
  .header__logo { gap: 0.6rem; }
  .header__logo-text { padding-left: 0.6rem; }
  .header__logo-name { letter-spacing: 0.2em; padding-left: 0.2em; }
  .header__logo-sub { letter-spacing: 0.34em; padding-left: 0.34em; }
}
