/* Custom local overrides for Revenya site */

:root {
  --header-offset: 100px; /* approximate sticky header height */
}

/* Ensure in-page anchors aren't hidden behind fixed header */
[id] {
  scroll-margin-top: var(--header-offset);
}

/* Basic image and media safety */
img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Text rendering & fallback fonts in case Typekit is unavailable */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Freight Text Pro", "Baskerville Display PT", Baskerville, Georgia, "Times New Roman", serif;
}

/* Utility: contain long URLs or content */
.container, .content, .sqs-html-content {
  overflow-wrap: anywhere;
}

/* --- Bootstrap accordion integration for Squarespace accordion blocks --- */
/* Remove default list styles and spacing */
ul.accordion-items-container {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Hide Squarespace's plus icon when Bootstrap accordion is active */
ul.accordion-items-container .accordion-icon-container {
  display: none !important;
}

/* Make Bootstrap accordion button inherit site styles better */
.accordion-button {
  background-color: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Keep dividers visible between items if present */
ul.accordion-items-container .accordion-divider {
  border-top: 1px solid currentColor;
  opacity: 0.2;
}

/* --- Header: sticky, blur background, and accessibility --- */
header.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Background layer that supports blur */
.header-background.header-blur-background {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 16, 16, 0.55);
}

@supports (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px)) {
  .header-background.header-blur-background {
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    background-color: rgba(16, 16, 16, 0.35);
  }
}

/* Header border and drop shadow helpers */
.header-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-dropshadow {
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Accessible skip link */
.header-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.header-skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  z-index: 1100;
}

/* Navigation spacing tweaks */
.header-nav-list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav-item a {
  text-decoration: none;
}

.header-actions .btn {
  /* preserve existing theme button, ensure good tap targets */
  min-height: 40px;
}

/* --- Header logo sizing (icon-sized) --- */

.navbar.navbar-blur .navbar-brand img,
.navbar .navbar-brand img {
  height: 32px; /* slightly larger icon size */
  width: auto;
  display: inline-block;
}

@media (min-width: 992px) {
  .navbar.navbar-blur .navbar-brand img,
  .navbar .navbar-brand img {
    height: 40px; /* slightly larger on desktop */
  }
}

/* --- Hero heading sizing override (Unlock Funding / Keep Ownership & Control) --- */
.fe-block-44b68edf6818324f7155 h1 {
  /* Responsive scale with sensible min/max */
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 0.25em;
}

/* --- Dark section override: make background black and text white --- */
section[data-section-id="672887d719170c17fee11a0b"] {
  background-color: #000;
  color: #fff;
}

section[data-section-id="672887d719170c17fee11a0b"] .section-background {
  background-color: #000 !important;
}

section[data-section-id="672887d719170c17fee11a0b"] a {
  color: #fff;
}

/* Force full-bleed width for this section inside a Bootstrap .container */
section[data-section-id="672887d719170c17fee11a0b"] {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

/* --- Requirements & Terms side-by-side layout --- */
.requirements-terms-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
  justify-content: center;
}

.requirements-column,
.terms-column {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.requirements-column h4,
.terms-column h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.requirements-column ul,
.terms-column ul {
  padding-left: 20px;
}

.requirements-column li,
.terms-column li {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .requirements-terms-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .requirements-column,
  .terms-column {
    max-width: 100%;
  }
}

/* --- How It Works 4-cell grid layout --- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  margin-top: 30px;
}

.how-it-works-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-it-works-cell h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.how-it-works-cell p {
  margin-bottom: 20px;
}

.how-it-works-cell .image-container {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.how-it-works-cell img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ensure images render above headings with clear spacing regardless of theme overrides */
.how-it-works-cell {
  flex-direction: column !important; /* enforce vertical stacking */
}
.how-it-works-cell .image-container {
  display: block;
  margin-bottom: 12px; /* add space between image and heading */
}
.how-it-works-cell h3 {
  margin-top: 4px; /* gentle separation from image */
}

@media (max-width: 767px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA: Talk To Us (big black button with white text) --- */
#block-a3ae867d2a7a5b9061b4 .sqs-block-button-element {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 28px !important;
  font-size: 1.125rem !important; /* ~18px */
  line-height: 1.2 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-block !important;
}

#block-a3ae867d2a7a5b9061b4 .sqs-block-button-element:hover,
#block-a3ae867d2a7a5b9061b4 .sqs-block-button-element:focus {
  background-color: #111 !important;
  color: #fff !important;
  text-decoration: none !important;
}

#block-a3ae867d2a7a5b9061b4 .sqs-block-button-container {
  text-align: center;
}
