/* ---------------------------------------------------------------------------
   Beyond Fiction — homepage top redesign (hero / video / domains).
   Self-contained: every selector is prefixed .bf-* and lives inside .bf-top,
   so nothing here can leak into the Webflow template styles used by the rest
   of the site. Palette is taken from the cream + sage reference background.
   --------------------------------------------------------------------------- */
.bf-top {
  --bf-cream: #F6F1E7;
  --bf-cream-soft: #FBF8F1;
  --bf-beige: #EFE8DA;
  --bf-sage: #6F7F67;
  --bf-green: #24382B;
  --bf-green-hover: #16261B;
  --bf-ink: #16303C;
  --bf-body: #6A7570;
  --bf-gold: #C6A15B;
  --bf-line: #DED4C0;

  position: relative;
  background-color: var(--bf-cream);
  background-image: url("/home-bg.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 5rem;
  overflow: hidden;
}
.bf-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Decorative dot grids, echoing the reference layout */
.bf-dots {
  position: absolute;
  width: 74px;
  height: 74px;
  background-image: radial-gradient(var(--bf-line) 1.6px, transparent 1.6px);
  background-size: 13px 13px;
  opacity: 0.75;
  pointer-events: none;
}
.bf-dots.is-left { top: 130px; left: 28px; }
.bf-dots.is-right { top: 620px; right: 30px; }

/* --- Navbar --------------------------------------------------------------
   The shared Webflow navbar is position:absolute and was styled white for the
   old dark hero. .bf-nav-light is added to the navbar in index.html only, so
   these rules never touch the navbar on any other page. */
.bf-nav-light .menu-text {
  color: #16303C;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
}
/* Homepage header carries no logo — the menu takes its place on the left and
   the emblem lives in the hero instead. .navbar-wrapper is space-between, so
   removing the brand pushes the menu to the far left on its own. */
.bf-nav-light .brand-logo-link { display: none; }
/* The Webflow nav container is 1310px/15px padding while the page content is
   1240px/2rem, which left the menu sitting ~30px further left than the hero.
   Match it so "Home" lines up with the eyebrow pill and heading below. */
.bf-nav-light .container {
  max-width: 1240px;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media screen and (max-width: 991px) {
  /* Collapsed nav: the menu becomes an overlay behind the hamburger, so the
     logo comes back on the left (light-background version) and the hamburger
     sits on the right. */
  .bf-nav-light .brand-logo-link { display: block; }
  .bf-nav-light .navbar-wrapper { justify-content: space-between; align-items: center; }
  .bf-nav-light .brand-image { height: 30px; width: auto; }
  /* The collapsed dropdown panel has a black background (Webflow default),
     but .menu-text above is forced dark for the light desktop bar — override
     back to white here so the links are readable on that black panel. */
  .bf-nav-light .nav-menu-wrap .menu-text { color: #FFFFFF; }
}
/* Menu icon. The template's hamburger was two lazy-loaded CDN SVGs that never
   fetched, so they collapsed to 0 height and the button was invisible. This is
   a self-contained inline icon instead — always visible, dark on the cream nav. */
.bf-nav-light .hamburger-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}
.bf-nav-light .bf-burger {
  display: block;
  width: 28px;
  height: 28px;
  color: #16303C;
  /* Icon is decorative only — pointer-events:none makes every tap in the 30px
     button area fall straight through to .menu-button (which Webflow's nav
     script is bound to), instead of depending on hitting the stroked lines of
     an SVG path with fill:none, whose gaps don't register a hit. */
  pointer-events: none;
}
@media screen and (max-width: 767px) {
  .bf-nav-light .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
.bf-nav-light .nav-button-wrap .primary-button,
.bf-nav-light .nav-button-wrap .primary-bg {
  background-color: #24382B;
}
.bf-nav-light .nav-button-wrap .primary-btn-text { color: #FFFFFF; }
.bf-nav-light .nav-button-wrap .primary-btn-icon { filter: brightness(0) invert(1); }

/* --- Hero -----------------------------------------------------------------
   Top padding clears the announcement bar (44px) + absolute navbar (69px). */
.bf-hero { padding: 9rem 0 3rem; }
.bf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: 2.5rem;
  align-items: center;
}
.bf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem;
  border: 1px solid var(--bf-line);
  border-radius: 100px;
  background-color: #FFFFFF;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #45524C;
}
.bf-eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #F1ECE1;
}
.bf-eyebrow-icon svg { width: 14px; height: 14px; }

.bf-hero-headrow {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.bf-hero-emblem {
  flex: none;
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 50%;
}
.bf-hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.05rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bf-ink);
  text-transform: none;
}
.bf-hero-tagline {
  margin: 1.1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: #2F4A45;
}
.bf-hero-copy {
  max-width: 30rem;
  margin: 1.1rem 0 0;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--bf-body);
}
.bf-hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.9rem;
}
.bf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}
.bf-btn span { transition: transform .22s ease; }
.bf-btn:hover span { transform: translateX(4px); }
.bf-btn-primary {
  background-color: var(--bf-green);
  color: #FFFFFF;
}
.bf-btn-primary:hover { background-color: var(--bf-green-hover); }
.bf-btn-ghost {
  background-color: #FFFFFF;
  border: 1px solid var(--bf-line);
  color: var(--bf-ink);
}
.bf-btn-ghost:hover { border-color: var(--bf-green); }

.bf-hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Sit near the top of the hero row so "Exposure Matters" reads as a caption
     above the ring graphic, rather than floating at mid-height. */
  align-self: start;
  padding-top: 0.25rem;
}
.bf-hero-script {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 2.35rem;
  font-weight: 500;
  color: var(--bf-ink);
  line-height: 1;
}
.bf-hero-script-rule {
  width: 190px;
  height: 10px;
  margin: 0.55rem 0 1.1rem;
  color: var(--bf-gold);
}
.bf-hero-ring {
  width: 100%;
  max-width: 660px;
  height: auto;
  display: block;
}

/* --- Video card ----------------------------------------------------------- */
.bf-video { padding: 1rem 0 3.5rem; }
.bf-video-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(222, 212, 192, 0.7);
  backdrop-filter: blur(4px);
}
.bf-kicker {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A9490;
}
.bf-video-title {
  margin: 0.7rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--bf-ink);
  text-transform: none;
}
.bf-video-copy {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--bf-body);
}
.bf-video-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--bf-line);
}
.bf-video-rule::before,
.bf-video-rule::after {
  content: "";
  height: 1px;
  background-color: currentColor;
  flex: 1;
}
.bf-video-rule i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--bf-line);
  flex: none;
}
.bf-video-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background-color: #0D1512;
}
.bf-video-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Domains -------------------------------------------------------------- */
.bf-domains { padding: 1rem 0 2rem; }
.bf-sec-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}
.bf-sec-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--bf-ink);
  text-align: center;
  text-transform: none;
  line-height: 1.15;
}
.bf-flourish {
  flex: none;
  width: 150px;
  height: 12px;
  color: #B9AE97;
}
.bf-sec-sub {
  margin: 0.6rem 0 0;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.875rem;
  color: var(--bf-body);
}
.bf-domain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 3.2rem;
}
.bf-domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.85rem 1.4rem;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(222, 212, 192, 0.65);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.bf-domain-card:hover {
  transform: translateY(-5px);
  border-color: var(--bf-sage);
  box-shadow: 0 14px 30px rgba(36, 56, 43, 0.09);
}
.bf-domain-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #0C1116;
}
.bf-domain-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bf-domain-badge {
  position: absolute;
  top: -16px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid rgba(222, 212, 192, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(36, 56, 43, 0.08);
}
.bf-domain-badge svg { width: 19px; height: 19px; }
.bf-domain-name {
  margin-top: 0.9rem;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--bf-ink);
}

/* --- Responsive ----------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .bf-hero-title { font-size: 2.5rem; }
  .bf-hero-emblem { width: 96px; height: 96px; }
  .bf-domain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-flourish { width: 90px; }
}
@media screen and (max-width: 900px) {
  .bf-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .bf-video-card { grid-template-columns: 1fr; }
  .bf-video-media { order: -1; }
  .bf-sec-head h2 { font-size: 2rem; }
  .bf-flourish { display: none; }
}
@media screen and (max-width: 767px) {
  .bf-container { padding: 0 1.25rem; }
  .bf-top { padding-bottom: 3rem; }
  .bf-hero { padding: 7rem 0 2rem; }
  .bf-hero-headrow { gap: 1rem; }
  .bf-hero-emblem { width: 74px; height: 74px; }
  .bf-hero-title { font-size: 1.95rem; }
  .bf-hero-tagline { font-size: 1.4rem; }
  .bf-hero-script { font-size: 1.75rem; }
  /* Wraps to two lines at this width — centre it so both lines sit evenly
     inside the pill instead of hanging off the icon on the left. */
  .bf-eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
  }
  .bf-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .bf-video-title { font-size: 1.5rem; }
  .bf-dots { display: none; }
}
@media screen and (max-width: 479px) {
  .bf-hero-headrow { flex-direction: column; align-items: flex-start; }
  .bf-hero-title { font-size: 1.75rem; }
  .bf-sec-head h2 { font-size: 1.6rem; }
}
