/* ACproperty-Site/site-mockup-v3.html — ebook bar, cover, modal layout */

.ebook-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--border);
  padding: 11px 64px;
  position: relative;
}
/* Theme resets beat [hidden]; keep dismiss + session init working */
.ebook-bar[hidden],
.ebook-bar.is-dismissed {
  display: none !important;
}
.ebook-bar .eb-tag {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.ebook-bar .eb-text {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.ebook-bar .eb-text-bold {
  font-weight: 500;
  color: var(--ink);
}
.ebook-bar .eb-text-light,
.ebook-bar .eb-text span {
  color: var(--body);
  font-weight: 500;
}
.ebook-bar .eb-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.ebook-bar .eb-cta:hover {
  background: var(--deep-red);
}
.ebook-bar .eb-close {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.ebook-bar .eb-close:hover {
  color: var(--ink);
}

.ebook-cover {
  aspect-ratio: 3/4;
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-2deg);
}
.ebook-cover .ec-top {
  width: 34px;
  height: 3px;
  background: var(--red);
}
.ebook-cover .ec-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.22;
  color: #fff;
  letter-spacing: -0.01em;
}
.ebook-cover .ec-foot {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8a59f;
}
.ebook-cover .ec-foot .ac {
  color: var(--red);
}

.jb-ebook {
  background: var(--cream-deep);
  border: 1px solid var(--border);
  margin: 0 72px 72px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 48px;
  align-items: center;
}
.jb-ebook-eyebrow {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.jb-ebook h3 {
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.jb-ebook h3 .em {
  color: var(--red);
}
.jb-ebook p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 460px;
}
.jb-ebook-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  margin-top: 22px;
  transition: background 0.2s;
}
.jb-ebook-btn:hover {
  background: var(--deep-red);
}
.jb-ebook-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* Ebook popup — matches site-mockup-v3.html #modal-ebook (520px modal-box) */
.acp-modal-ebook .modal-box {
  max-width: 520px;
}

.acp-modal-ebook .modal-box h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.acp-modal-ebook .modal-box > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

.acp-ebook-klaviyo {
  margin: 0;
}

.acp-ebook-klaviyo-placeholder {
  font-size: 14px;
  color: var(--body);
  padding: 16px;
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

@media (max-width: 760px) {
  .ebook-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .ebook-bar .eb-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    line-height: 1.35;
    max-width: 100%;
  }

  .ebook-bar .eb-text-light,
  .ebook-bar .eb-text span {
    display: block;
  }

  .ebook-bar .eb-tag {
    display: none;
  }

  .ebook-bar .eb-close {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin-top: 2px;
    align-self: center;
  }

  .jb-ebook {
    grid-template-columns: 1fr;
    margin: 0 22px 48px;
    padding: 32px 24px;
  }
}
