/* Shared static-site helpers for Avora design drafts */

.avora-draft-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: #1f1d1a;
  color: #f7f3ec;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.avora-draft-bar__back {
  color: #f7f3ec !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.avora-draft-bar__back:hover {
  color: #d6ccbc !important;
}

.avora-draft-bar__label {
  opacity: 0.85;
}

.avora-placeholder-link {
  cursor: default;
  text-decoration: underline dotted;
}

.img-slot {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      rgba(110, 90, 72, 0.06),
      rgba(110, 90, 72, 0.06) 8px,
      rgba(110, 90, 72, 0.12) 8px,
      rgba(110, 90, 72, 0.12) 16px
    ),
    #e3d9c8;
  color: #4a443d;
}

.img-slot--circle {
  border-radius: 50%;
}

.img-slot__text {
  font-size: 12px;
  line-height: 1.45;
  max-width: 28ch;
  background: rgba(247, 243, 236, 0.88);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(214, 204, 188, 0.9);
}

.avora-demo-form {
  position: relative;
}

.avora-demo-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 8px;
  background: rgba(110, 90, 72, 0.12);
  border: 1px solid rgba(110, 90, 72, 0.25);
  color: inherit;
}

header > nav:not(.av-links) {
  display: none !important;
}

header > nav.avora-mobile-nav.is-open {
  display: flex !important;
  flex-direction: column;
}

/* style-hover / style-focus polyfill targets */
[data-dc-hover],
[data-dc-focus] {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s ease,
    box-shadow 0.25s ease, padding-left 0.3s ease;
}

button.av-burger:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #6e5a48;
  outline-offset: 2px;
}

.avora-preview-frame {
  pointer-events: none;
}

/* 6-column grid: top row spans 2+2+2; bottom row 2+2 centered (cols 2–3 and 4–5) */
.avora-hub-concepts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.avora-hub-concepts__row {
  display: contents;
}

.avora-hub-concepts__row > a:nth-child(1) {
  grid-column: 1 / span 2;
}

.avora-hub-concepts__row > a:nth-child(2) {
  grid-column: 3 / span 2;
}

.avora-hub-concepts__row > a:nth-child(3) {
  grid-column: 5 / span 2;
}

.avora-hub-concepts__row--bottom > a:nth-child(1) {
  grid-column: 2 / span 2;
}

.avora-hub-concepts__row--bottom > a:nth-child(2) {
  grid-column: 4 / span 2;
}

@media (max-width: 1024px) {
  .avora-hub-concepts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .avora-hub-concepts__row > a,
  .avora-hub-concepts__row--bottom > a {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .avora-hub-concepts {
    grid-template-columns: 1fr;
  }
}

.avora-studio-panel:not([hidden]) {
  animation: avFade 0.4s ease both;
}

@media (max-width: 820px) {
  .avora-draft-bar {
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .avora-modern-hero-grid > div[style*='grid-column:span 2'] {
    grid-column: auto !important;
  }
}

.avora-logotypes {
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px) 80px;
  background: #efe9df;
}

.avora-logotypes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 2.2vw, 44px);
  align-items: start;
}

.avora-logotype-item {
  min-width: 0;
}

.avora-logotype-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 12px 32px rgba(31, 29, 26, 0.06);
}

.avora-logotype-card > div[style*='height:200px'] {
  height: clamp(168px, 11vw, 220px) !important;
}

.avora-logotype-card > div[style*='height:120px'] {
  height: clamp(100px, 7vw, 132px) !important;
}

@media (max-width: 1280px) {
  .avora-logotypes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .avora-logotypes-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
