/* ==========================================================================
   Škola řemesel - style.css
   Mobile-first, modern CSS, single file
   ========================================================================== */

/* ==========================================================================
   Fonts (defined inline in header.php for critical path)
   This file is loaded non-blocking via media=print trick
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (also in header.php critical CSS)
   ========================================================================== */

:root {
  --blue: #107CCD;
  --blue-light: #B2CCE1;
  --blue-dark: #0A5A9C;
  --orange: #FF6600;
  --white: #FFFFFF;
  --orange-hover: #e55b00;
  --text: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.6);
  --heading: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(255, 255, 255, 0.3);
  --font-h: 'Muli', system-ui, sans-serif;
  --font-b: 'Roboto', system-ui, sans-serif;
  --header-h: 56px;
  --max-w: 1100px;
  --radius: 8px;
  --speed: 0.25s;
}

/* ==========================================================================
   Base (extended from critical CSS)
   ========================================================================== */

::selection {
  background: var(--blue);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   Scroll-snap slides
   ========================================================================== */

.slides {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0D6AB5 20%, #1282D6 40%, var(--blue) 60%, #0D6AB5 80%, var(--blue-dark) 100%);
  background-attachment: fixed;
  color: var(--white);
}

.slide {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 2rem;
  scroll-snap-align: start;
  position: relative;
}

/* ==========================================================================
   Nav dots (desktop only)
   ========================================================================== */

.dots {
  display: none;
}

@media (min-width: 860px) {
  .dots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--blue);
    background: transparent;
    cursor: pointer;
    transition: background var(--speed), transform var(--speed);
    padding: 0;
  }

  .dot.is-active {
    background: var(--blue);
    transform: scale(1.3);
  }

  .dot:hover {
    background: var(--blue-light);
  }
}

/* ==========================================================================
   Navigation (extended from critical CSS)
   ========================================================================== */

/* Hamburger animation */
.site-header__checkbox:checked ~ .site-header__toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.site-header__checkbox:checked ~ .site-header__toggle span:nth-child(2) {
  opacity: 0;
}
.site-header__checkbox:checked ~ .site-header__toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.site-nav__cta:hover {
  background: var(--orange-hover);
}

/* ==========================================================================
   Slide: Hero
   ========================================================================== */

.slide--hero {
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--blue-dark);
  background-image:
    linear-gradient(180deg, rgba(10, 90, 156, 0.88) 0%, rgba(10, 90, 156, 0.82) 50%, rgba(10, 90, 156, 0.92) 100%),
    url('/img/hero-mobile.webp');
  background-position: center;
  background-size: cover;
}

@media (min-width: 769px) {
  .hero__bg {
    background-image:
      linear-gradient(180deg, rgba(10, 90, 156, 0.88) 0%, rgba(10, 90, 156, 0.82) 50%, rgba(10, 90, 156, 0.92) 100%),
      url('/img/hero.webp');
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero__logo {
  width: 120px;
  height: auto;
  border-radius: 50%;
}

.hero__logo--svitsol {
  width: 120px;
  border-radius: 50%;
}

.hero__title {
  margin-bottom: 1rem;
  color: var(--white);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background var(--speed), border-color var(--speed);
}

.hero__cta:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.hero__cta--secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero__trust {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ==========================================================================
   Slide: O službě
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.about__text p {
  margin-bottom: 1rem;
  line-height: 1.75;
  text-align: left;
}

.about__text strong {
  color: var(--heading);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .about__features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  padding: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.feature h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--orange);
  text-align: left;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: left;
}

.about__cta {
  margin-top: 2rem;
  text-align: center;
}

.about__cta p {
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--speed);
}

.btn:hover {
  background: var(--orange-hover);
  color: var(--white);
}

/* ==========================================================================
   Slide: Galerie
   ========================================================================== */

.gallery__videos {
  margin-bottom: 2rem;
}

.gallery__videos h3,
.gallery__photos h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.gallery__video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 550px) {
  .gallery__video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-item video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 700px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 860px) {
  .gallery__grid { grid-template-columns: repeat(5, 1fr); }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Gallery item as button */
.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity var(--speed);
  z-index: 201;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-family: var(--font-h);
}

/* Gallery teaser grid (public photos) */
.gallery__teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .gallery__teaser-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery__teaser-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}

.gallery__teaser-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery CTA (after gallery section) */
.gallery__cta {
  margin-top: 2rem;
  text-align: center;
}

.gallery__cta p {
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 1.05rem;
}

/* Gallery logout */
.gallery__logout {
  text-align: right;
  margin-bottom: 1rem;
}

.gallery__logout-btn {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font-b);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--speed), color var(--speed);
}

.gallery__logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Gallery login form */
.gallery__teaser {
  max-width: 480px;
  margin: 1.5rem auto;
  text-align: center;
}

.gallery__teaser p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.gallery__error {
  padding: 0.6rem 1rem;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: var(--radius);
  color: #f88;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.gallery__login {
  max-width: 320px;
  margin: 0 auto;
}

.gallery__login-field {
  margin-bottom: 0.75rem;
  text-align: left;
}

.gallery__login-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--heading);
}

.gallery__login-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-b);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color var(--speed);
}

.gallery__login-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.gallery__login-field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.25);
}

.gallery__login-btn {
  width: 100%;
  padding: 0.7rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--speed);
}

.gallery__login-btn:hover {
  background: var(--orange-hover);
}

/* ==========================================================================
   Slide: Kontakt
   ========================================================================== */

.contact__inner h2 {
  margin-bottom: 1.5rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

@media (min-width: 700px) {
  .contact__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

/* Contact form */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-form__field {
  margin-bottom: 0.75rem;
}

.contact-form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--heading);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-b);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color var(--speed);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.25);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form__select option {
  background: var(--blue-dark);
  color: #fff;
}

.contact-form__error {
  display: block;
  font-size: 0.78rem;
  color: #dc3545;
  min-height: 1rem;
  margin-top: 0.2rem;
}

.contact-form__submit {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--speed);
  margin-top: 0.5rem;
}

.contact-form__submit:hover {
  background: var(--orange-hover);
}

.contact-form__note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.5rem;
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__info-item h4 {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact__info-item p {
  font-size: 1.15rem;
  margin: 0;
}

.contact__info-item a {
  color: var(--orange);
}

.contact__info-item a:hover {
  color: #ff8533;
}

/* ==========================================================================
   Slide: Links + Footer
   ========================================================================== */

.slide--footer {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
}

.links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 550px) {
  .links__grid { grid-template-columns: repeat(3, 1fr); }
}

.links__card {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color var(--speed);
}

.links__card:hover {
  border-color: var(--card-border-hover);
  color: var(--text);
}

.links__card h3 { margin-bottom: 0.3rem; }

.links__card p {
  font-size: 1rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.links__card-arrow {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 500;
}

.links__card:hover .links__card-arrow { color: var(--orange); }

/* Site footer */
.site-footer {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: left;
}

@media (min-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__brand img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  opacity: 0.5;
  border-radius: 50%;
}

.site-footer__brand p { margin: 0; line-height: 1.5; }

.site-footer__links h4,
.site-footer__contact h4 {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.site-footer__links a {
  display: block;
  padding: 0.15rem 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.site-footer__links a:hover { color: var(--orange); }

.site-footer__contact p,
.site-footer__contact a {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.site-footer__copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.site-footer__copyright a { color: var(--text-dim); }
.site-footer__copyright a:hover { color: var(--orange); }

/* ==========================================================================
   Flash messages
   ========================================================================== */

.flash {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid;
  background: rgba(10, 90, 156, 0.95);
  backdrop-filter: blur(8px);
  max-width: 90vw;
  animation: flash-in 0.4s ease;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.flash--success { border-color: #28a745; color: #8f8; background: rgba(10, 90, 156, 0.95); }
.flash--error { border-color: #dc3545; color: #f88; background: rgba(10, 90, 156, 0.95); }
.flash--spam { border-color: #ffc107; color: #fc8; background: rgba(10, 90, 156, 0.95); }
.flash--dismiss { opacity: 0; transition: opacity 0.5s ease; }

/* ==========================================================================
   Page header (clanky.php)
   ========================================================================== */

.page-main {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0D6AB5 50%, var(--blue-dark) 100%);
  color: var(--text);
  min-height: 100dvh;
}

.page-header {
  padding: calc(var(--header-h) + 3rem) 1.25rem 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .page-header { padding: calc(var(--header-h) + 4rem) 2.5rem 2.5rem; }
}

.page-header__subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Articles (clanky.php)
   ========================================================================== */

.section--flush-top { padding-top: 0; }

.articles {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

@media (min-width: 768px) {
  .articles { padding: 0 0 4rem; }
}

.article {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--card-border);
}

.article:last-child { border-bottom: none; margin-bottom: 0; }

.article__header h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.article__body {
  font-size: 1rem;
  line-height: 1.85;
}

.article__body strong { color: var(--heading); font-weight: 600; }
.article__body em { color: var(--text-dim); }

.article__body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(16, 124, 205, 0.3);
  text-underline-offset: 2px;
}

.article__body a:hover {
  text-decoration-color: var(--blue);
}

.article__list {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 2;
}

.page-back {
  text-align: center;
  padding: 0 1.25rem 3rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Focus styles (accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.contact-form__input:focus-visible,
.contact-form__select:focus-visible,
.contact-form__textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(16, 124, 205, 0.25);
}

.site-nav__cta:focus-visible,
.hero__cta:focus-visible,
.contact-form__submit:focus-visible,
.gallery__login-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--blue);
}

.dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

.logo-header--sr {
  height: 36px;
  border-radius: 50%;
}

.logo-header--svitsol {
  height: 36px;
  width: 36px;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  .hero__logo { width: 80px; }
  .hero__logo--svitsol { width: 80px; }
  .hero__logos { gap: 1rem; }
}

@media (max-width: 767px) {
  .slides { scroll-snap-type: y proximity; }
  .slide { min-height: auto; padding: calc(var(--header-h) + 2rem) 1.25rem 3rem; align-items: flex-start; }
  .slide--hero { min-height: 100dvh; align-items: center; }
}

@media (min-width: 768px) {
  .slide { padding: var(--header-h) 2.5rem 2rem; }
  .site-header { padding: 0 2.5rem; }
}

@media (min-width: 860px) {
  .site-header__toggle { display: none; }
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    overflow: visible;
  }
  .site-nav__list { flex-direction: row; align-items: center; }
  .site-nav__link {
    padding: 0.4rem 0.9rem;
    border: none;
    font-size: 0.88rem;
    color: var(--white);
    font-family: var(--font-h);
  }
  .site-nav__link:hover { color: var(--orange); }
  .site-nav__cta {
    margin-top: 0;
    margin-left: 0.5rem;
    display: inline-block;
    padding: 0.55rem 1.5rem;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .slides { scroll-snap-type: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .dots, .hero__scroll, .contact-form, .gallery__login { display: none; }
  .slides { height: auto; overflow: visible; scroll-snap-type: none; background: #fff; color: #333; }
  .slide { min-height: auto; padding: 2rem 0; }
  body { background: #fff; color: #333; }
  h1, h2, h3, h4 { color: #333; }
  a { color: #333; text-decoration: underline; }
}
