/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

[data-lang][hidden] {
  display: none !important;
}

.construction-landing {
  background: radial-gradient(120% 120% at 20% 20%, rgba(123, 92, 247, 0.18), transparent),
    radial-gradient(140% 140% at 80% 0%, rgba(255, 255, 255, 0.12), transparent),
    var(--color-3, #22112f);
  color: #f8f7ff;
  min-height: 100vh;
  padding: clamp(3rem, 5vw, 6rem) clamp(2rem, 5vw, 6rem);
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-content: center;
}

.construction-hero__content {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.25rem;
  margin: 0 auto 1.5rem;
}

.language-toggle__btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-toggle__btn.is-active {
  background: #f7e7ff;
  color: #2b153f;
  transform: translateY(-1px);
  box-shadow: 0 0.4rem 1rem rgba(16, 0, 32, 0.25);
}

.language-toggle__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.construction-hero__title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.construction-hero__lead {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.construction-hero__lead + .construction-hero__lead,
.brochure-section__subtitle + .brochure-section__subtitle,
.brochure-section__note + .brochure-section__note {
  margin-top: 0.5rem;
}

.brochure-section {
  background: rgba(18, 10, 28, 0.8);
  border-radius: 1.25rem;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.5rem 3.5rem rgba(6, 0, 18, 0.35);
}

.brochure-section__header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.brochure-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.brochure-section__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

.brochure-section__viewer {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.brochure-pdf {
  width: min(100%, 720px);
  max-height: min(80vh, 860px);
  overflow-y: auto;
  background: rgba(14, 6, 24, 0.85);
  border-radius: 1rem;
  padding: clamp(0.85rem, 2.5vw, 1.75rem);
  position: relative;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brochure-pdf[data-loading]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 20% 30%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(100% 100% at 80% 70%, rgba(161, 129, 255, 0.18), transparent);
  opacity: 0.4;
  animation: brochure-loading-glow 2.2s ease-in-out infinite;
  pointer-events: none;
}

.brochure-pdf[data-loading] .brochure-pdf__placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.brochure-pdf__placeholder {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  min-height: clamp(12rem, 35vh, 18rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.brochure-pdf__placeholder::before {
  content: '';
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: brochure-loading-spin 0.9s linear infinite;
  display: block;
}

.brochure-pdf__placeholder--fade-out {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.brochure-pdf__fallback {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin: auto;
  max-width: 18rem;
  line-height: 1.5;
}

.brochure-pdf__pages {
  display: grid;
  gap: 1.5rem;
}

.brochure-pdf__page {
  position: relative;
  background: rgba(9, 5, 14, 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 1.25rem 2.75rem rgba(6, 0, 18, 0.35);
  padding: clamp(0.5rem, 2vw, 1rem);
}

.brochure-pdf__page::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.brochure-pdf__page canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.brochure-controls__status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.brochure-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.brochure-control {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #f5f5ff;
  color: #1f1030;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brochure-control:hover,
.brochure-control:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
}

.brochure-control:active {
  transform: translateY(1px);
}

.brochure-section__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.6;
}

.brochure-section__download {
  color: #fefcff;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
}

.brochure-section__download:hover,
.brochure-section__download:focus-visible {
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes brochure-loading-glow {
  0% {
    opacity: 0.32;
    filter: blur(0);
  }

  50% {
    opacity: 0.46;
    filter: blur(2px);
  }

  100% {
    opacity: 0.32;
    filter: blur(0);
  }
}

@keyframes brochure-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .construction-landing {
    padding: 2.5rem 1.5rem;
  }

  .language-toggle {
    margin-bottom: 1.25rem;
  }

  .brochure-section {
    padding: 1.75rem;
  }

  .brochure-pdf {
    width: min(100%, 520px);
    max-height: 70vh;
  }

  .brochure-control {
    padding: 0.65rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .construction-hero__title {
    font-size: clamp(2.2rem, 8vw, 2.75rem);
  }

  .construction-hero__lead {
    font-size: 1.05rem;
  }

  .language-toggle__btn {
    padding: 0.35rem 0.95rem;
  }

  .brochure-pdf {
    width: min(100%, 420px);
    padding: 0.65rem;
    max-height: 65vh;
  }
}

@media (max-width: 360px) {
  .construction-landing {
    padding: 2rem 1.25rem;
  }

  .brochure-controls {
    gap: 0.75rem;
  }

  .brochure-control {
    flex: 1 1 45%;
    padding: 0.6rem 1rem;
  }

  .brochure-pdf__page canvas {
    border-radius: 0.5rem;
  }
}
