/**
 * weROI brand theme for Solarity shell
 * Forest green + lime + off-white. Keeps template layout/sizing slots.
 */

:root,
html.dark,
.dark {
  /* Core surfaces */
  --background: #0a1409;
  --foreground: #f7f8f4;
  --card: #123010;
  --card-foreground: #f7f8f4;
  --popover: #123010;
  --popover-foreground: #f7f8f4;

  /* Brand */
  --primary: #e3ff04;
  --primary-foreground: #0a1409;
  --secondary: #163a14;
  --secondary-foreground: #f7f8f4;
  --muted: #152914;
  --muted-foreground: #b8c4b0;
  --accent: #e3ff04;
  --accent-foreground: #0a1409;
  --border: rgba(227, 255, 4, 0.18);
  --input: rgba(247, 248, 244, 0.12);
  --ring: #e3ff04;

  /* Template aliases */
  --bg: #0a1409;
  --text: #f7f8f4;
  --color-primary: #e3ff04;
  --color-accent: #e3ff04;
}

html:not(.dark) {
  --background: #f7f8f4;
  --foreground: #163a14;
  --card: #ffffff;
  --card-foreground: #163a14;
  --popover: #ffffff;
  --popover-foreground: #163a14;
  --primary: #163a14;
  --primary-foreground: #e3ff04;
  --secondary: #e8ebe3;
  --secondary-foreground: #163a14;
  --muted: #eef0ea;
  --muted-foreground: #3a4638;
  --accent: #e3ff04;
  --accent-foreground: #0a1409;
  --border: rgba(22, 58, 20, 0.16);
  --input: rgba(22, 58, 20, 0.12);
  --ring: #163a14;
  --bg: #f7f8f4;
  --text: #163a14;
}

html,
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  color-scheme: dark;
}

/* Flat dark page; hero section stays transparent so LightRays show through */
html,
body {
  background-color: #0a1409 !important;
}

.bg-gradient-mild,
section.bg1.bg-gradient-mild,
.bg1 {
  background: transparent !important;
  background-image: none !important;
}

/* Menu header: no fill, overlays rays (Solarity look) */
nav.relative.z-50,
nav.relative.z-50.bg-\[var\(--bg\)\],
nav.relative.z-50.bg-transparent,
nav.weroi-nav-clear,
header nav,
body > div > nav {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
}

nav.relative.z-50 > div,
nav.weroi-nav-clear > div,
nav.relative.z-50 .mx-auto {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.text-gradient,
span.text-gradient {
  background-image: linear-gradient(90deg, #e3ff04, #9fd100) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* ---------- Header: 1fr | tabs | 1fr so links sit on true viewport center ---------- */
nav.weroi-nav-clear > div.weroi-nav-shell,
nav.weroi-nav-clear > div.mx-auto {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 4rem !important;
  height: 4rem !important;
  padding-block: 0 !important;
  padding-inline: clamp(1.35rem, 2.6vw, 2.15rem) !important;
  box-sizing: border-box !important;
}

/* Logo left */
nav.weroi-nav-clear > div.weroi-nav-shell > div.flex.items-center.gap-4,
nav.weroi-nav-clear > div.mx-auto > div.flex.items-center.gap-4 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
}

/* Tabs pinned to true viewport center (not the gap between logo + actions) */
nav.weroi-nav-clear > div.weroi-nav-shell > ul,
nav.weroi-nav-clear > div.mx-auto > ul.hidden.items-center {
  position: absolute !important;
  left: 50vw !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  display: none !important;
  align-items: center !important;
  gap: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
}
@media (min-width: 768px) {
  nav.weroi-nav-clear > div.weroi-nav-shell > ul,
  nav.weroi-nav-clear > div.mx-auto > ul.hidden.items-center {
    display: flex !important;
  }
}

/* Right cluster */
nav.weroi-nav-clear > div.weroi-nav-shell > div.flex.items-center.gap-3,
nav.weroi-nav-clear > div.mx-auto > div.flex.items-center.gap-3 {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
}

/* Mobile hamburger stays fixed; keep out of grid flow */
nav.weroi-nav-clear .fixed.right-4.top-4 {
  grid-column: unset !important;
}

/* Template hero: Solarity centered stack, nudged lower */
.hero-text .flip.svelte-1lw43ac,
.hero-text svg.flip.svelte-1lw43ac,
.hero-text svg.flip {
  animation: svelte-1lw43ac-flipAnimation 4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-style: preserve-3d;
  /* Match template: w-8 / md:w-12 / lg:w-24 */
  width: clamp(2rem, 5.5vw, 6rem) !important;
  height: clamp(2rem, 5.5vw, 6rem) !important;
  max-width: none !important;
  vertical-align: middle !important;
  display: inline-block !important;
}

/* Heroes: template center alignment, then push the block down */
main > section.bg-gradient-mild.svelte-1lw43ac,
main > main > section.bg-gradient-mild.svelte-1lw43ac,
main > section.bg1.bg-gradient-mild {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 80vh !important;
  /* Extra top pad shifts the optical center down past the nav */
  padding-top: clamp(6.5rem, 16vh, 11rem) !important;
  padding-bottom: clamp(1.25rem, 3.5vh, 2.5rem) !important;
  box-sizing: border-box !important;
}

/* ---------- Shared hero utilities (inner pages) ---------- */
section.bg-gradient-mild .relative.flex.flex-col.items-center.text-center,
.svelte-1lw43ac > .relative.flex.flex-col.items-center {
  width: 100%;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0 !important;
  margin-inline: auto !important;
}

section.bg-gradient-mild .relative.z-10.max-w-5xl,
.svelte-1lw43ac .relative.z-10.max-w-5xl {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100%;
  max-width: 64rem !important;
  margin-inline: auto !important;
  padding-inline: 1.5rem;
}

.eyebrow.eyebrow-primary,
.eyebrow.eyebrow-primary.svelte-1lw43ac {
  display: block !important;
  text-align: center !important;
  margin: 0 auto 1rem auto !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase;
  font-weight: 600;
  color: #e3ff04 !important;
}

.hero-text.svelte-1lw43ac,
h1.hero-text,
.hero-text {
  text-align: center !important;
  margin: 0 auto !important;
  /* Template scale (not oversized) */
  font-size: clamp(2.6rem, 6vw, 5.25rem) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  max-width: min(20ch, 92vw) !important;
  color: #fff !important;
}

.hero-text .hero-break {
  display: block;
  content: "";
}

p.fade_up.svelte-1lw43ac,
section.bg-gradient-mild .fade_up,
.svelte-1lw43ac .fade_up {
  text-align: center !important;
  margin: 1rem auto 0 auto !important;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem) !important;
  line-height: 1.5 !important;
  color: rgba(247, 248, 244, 0.68) !important;
  max-width: 36rem;
}

p.hero-meaning.fade_up,
.hero-meaning {
  margin-top: 0.75rem !important;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem) !important;
  letter-spacing: 0.04em !important;
  color: rgba(247, 248, 244, 0.5) !important;
  max-width: 32rem;
  text-align: center !important;
}

.hero-meaning .roi-letter {
  color: #e3ff04 !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Review wall avatars: fill the Solarity lime ring */
section.section-padding .size-16 {
  background: #0f1206;
}
section.section-padding .size-16 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Google reviews CTA under testimonial wall */
.weroi-google-reviews-cta {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1.5rem !important;
  padding-inline: 1rem;
  clear: both;
}
.weroi-google-reviews-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  width: auto !important;
  max-width: max-content !important;
  background: rgba(18, 48, 16, 0.9) !important;
  border: 1px solid rgba(227, 255, 4, 0.28) !important;
  color: #f7f8f4 !important;
  text-decoration: none !important;
  border-radius: 9999px !important;
  padding: 0.7rem 1.35rem !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}
.weroi-google-reviews-link:hover {
  border-color: rgba(227, 255, 4, 0.55) !important;
  color: #e3ff04 !important;
}
.weroi-google-mark {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

section.bg-gradient-mild .flex.justify-center,
section.bg-gradient-mild [data-slot="button-group"],
.svelte-1lw43ac .flex.justify-center,
.svelte-1lw43ac [data-slot="button-group"],
.svelte-1lw43ac .mt-7,
.svelte-1lw43ac .mt-7 > .flex {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: fit-content !important;
}

.svelte-1lw43ac .mt-7 {
  margin-top: 1.75rem !important;
  margin-bottom: 1.25rem !important;
}

/* Proof strip under non-fold heroes */
section.bg-gradient-mild + section:not([data-weroi-fold-cards]):not(.weroi-login-panel) {
  margin-top: 0 !important;
  padding-top: clamp(0.75rem, 2vh, 1.5rem) !important;
}

@media (max-width: 767px) {
  h1.hero-text,
  .hero-text {
    font-size: clamp(2.15rem, 9.5vw, 3rem) !important;
    max-width: 14ch !important;
  }
  main > section.bg-gradient-mild.svelte-1lw43ac,
  main > section.bg1.bg-gradient-mild {
    padding-top: clamp(5rem, 12vh, 7.5rem) !important;
  }
}

html:not(.dark) .hero-text.svelte-1lw43ac,
html:not(.dark) h1.hero-text,
html:not(.dark) .hero-text {
  color: #163a14 !important;
}

html:not(.dark) .logo.svelte-184jy57,
html:not(.dark) a.logo {
  color: #163a14 !important;
}
html:not(.dark) .logo .heavy {
  color: #163a14 !important;
}

html:not(.dark) section.bg-gradient-mild .fade_up,
html:not(.dark) p.fade_up.svelte-1lw43ac {
  color: rgba(22, 58, 20, 0.72) !important;
}

html:not(.dark) .bg-gradient-mild,
html:not(.dark) section.bg1.bg-gradient-mild,
html:not(.dark) .bg1 {
  background: #f7f8f4 !important;
}

/* LightRays host sits behind hero copy; no CSS filters that turn beams into a blob */
.rays-fade,
.weroi-rays-host,
.absolute.inset-0.rays-fade {
  z-index: 0 !important;
}
.light-rays-container,
.light-rays-container canvas {
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
}

/* Primary CTA = lime (weROI), not blue-white chrome */
.bg-primary {
  background-color: #e3ff04 !important;
  color: #0a1409 !important;
}
.bg-primary:hover,
.hover\:bg-primary\/90:hover {
  background-color: #f0ff66 !important;
  color: #0a1409 !important;
}
.text-primary {
  color: #e3ff04 !important;
}
.text-primary-foreground,
.bg-primary .text-primary-foreground {
  color: #0a1409 !important;
}

/* Logo — Solarity-scale wordmark */
nav a.logo.svelte-184jy57,
nav a.logo,
a.logo.svelte-184jy57 {
  display: inline-flex !important;
  align-items: baseline !important;
  color: #fff !important;
  font-size: clamp(1.65rem, 2.4vw, 2.05rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
nav a.logo .heavy,
a.logo .heavy,
.logo .heavy.svelte-184jy57 {
  color: #e3ff04 !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
}

/* Keep nav tall enough for big mark — align with shell geometry */
nav.relative.z-50 > div.mx-auto,
nav.weroi-nav-clear > div.mx-auto,
nav.weroi-nav-clear > div.weroi-nav-shell {
  min-height: 4.5rem !important;
  height: auto !important;
  padding-block: 0.85rem !important;
}

/* Hide mobile hamburger on desktop (Solarity desktop chrome) */
@media (min-width: 768px) {
  nav.weroi-nav-clear .fixed.right-4.top-4,
  nav.weroi-nav-clear > div.mx-auto > .fixed,
  nav.weroi-nav-clear > div.weroi-nav-shell > .fixed,
  nav.weroi-nav-clear button.hamburger,
  nav.weroi-nav-clear .hamburger {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Nav hover */
.nav-link:hover,
a.nav-link:hover {
  color: #e3ff04 !important;
}

/* Flip icon stays brand green circle; arrow can stay template blue OR go forest */
.hero-text circle[fill="#3BC649"],
.flip circle {
  fill: #e3ff04 !important;
}
.hero-text path[fill="#3538F5"],
.flip path {
  fill: #163a14 !important;
}

/* Proof cards: green edge instead of blue/purple */
[data-slot="card"] .bg-gradient-to-r.from-accent\/80,
span[aria-hidden="true"].svelte-h7bcrl {
  background: linear-gradient(90deg, rgba(227, 255, 4, 0.85), rgba(22, 58, 20, 0.5), rgba(227, 255, 4, 0.25)) !important;
}

[data-slot="card"].from-accent\/10 {
  background:
    linear-gradient(160deg, rgba(227, 255, 4, 0.08), transparent 42%),
    #123010 !important;
  border-color: rgba(227, 255, 4, 0.2) !important;
}

/* Home proof strip: Solarity-style impact cards */
.weroi-stat-card {
  min-height: 9.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}
.weroi-stat-card .text-primary {
  color: #e3ff04 !important;
}

/* ---------- Contact / marked page blocks: lower + centered under nav ---------- */
section.weroi-page-block,
section.weroi-contact {
  /* Tall nav + absolute overlay: clear it, then sit mid-viewport on laptop */
  padding-top: clamp(7.5rem, 20vh, 12rem) !important;
  padding-bottom: clamp(4rem, 12vh, 7.5rem) !important;
  min-height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}

section.weroi-contact > .flex-container,
.weroi-contact-grid {
  width: 100% !important;
  max-width: 64rem !important;
  margin-inline: auto !important;
  margin-block: auto !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(2rem, 5vw, 3.5rem) !important;
  padding-inline: clamp(1.25rem, 5vw, 2.75rem) !important;
}

@media (min-width: 900px) {
  section.weroi-contact .col-4 {
    flex-basis: 38% !important;
    max-width: 38% !important;
  }
  section.weroi-contact .col-8 {
    flex-basis: 48% !important;
    max-width: 26rem !important;
  }
}

section.weroi-contact .max-w-md {
  max-width: 26rem !important;
  margin-inline: auto;
}

.about-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(227, 255, 4, 0.28);
  background:
    radial-gradient(circle at 50% 38%, rgba(227, 255, 4, 0.18), transparent 58%),
    rgba(8, 18, 10, 0.78);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.about-brand__mark {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f7f8f4;
}
.about-brand__mark span {
  color: #e3ff04;
}
.about-brand__line {
  margin: 0.9rem 0 0;
  color: rgba(247, 248, 244, 0.74);
  font-size: 1.05rem;
}

/* Consent line used text-muted, which is a dark surface token. Keep it readable. */
p.text-xs.text-muted {
  color: #d7e0d2 !important;
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
}
p.text-xs.text-muted a {
  color: #e3ff04 !important;
  text-underline-offset: 3px;
}
p.text-xs.text-muted a:hover {
  color: #f7f8f4 !important;
}

section.weroi-contact h1 {
  color: #fff;
}
html:not(.dark) section.weroi-contact h1 {
  color: #163a14;
}

/* Client login: same hero fold as other pages + paced login panel */
main.weroi-client-login {
  position: relative;
  isolation: isolate;
}
main.weroi-client-login > .rays-fade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main.weroi-client-login > section {
  position: relative;
  z-index: 1;
}
main.weroi-client-login > section.bg1.bg-gradient-mild,
main.weroi-client-login > section.bg-gradient-mild {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 80vh !important;
  height: auto !important;
  padding-top: clamp(6.5rem, 16vh, 11rem) !important;
  padding-bottom: clamp(1.25rem, 3.5vh, 2.5rem) !important;
  box-sizing: border-box !important;
}
main.weroi-client-login .hero-text {
  font-size: clamp(3rem, 7.5vw, 6rem) !important;
  max-width: min(14ch, 94vw) !important;
  line-height: 1.04 !important;
}
main.weroi-client-login .hero-text .flip,
main.weroi-client-login .hero-text svg.flip {
  width: clamp(2.75rem, 7vw, 7.25rem) !important;
  height: clamp(2.75rem, 7vw, 7.25rem) !important;
}
main.weroi-client-login .fade_up {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem) !important;
  max-width: 42rem !important;
  margin-top: 1.35rem !important;
}
main.weroi-client-login .eyebrow.eyebrow-primary {
  font-size: 0.78rem !important;
  letter-spacing: 0.32em !important;
  margin-bottom: 1.25rem !important;
}
main.weroi-client-login > section.weroi-login-panel,
section.weroi-login-panel {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  /* Match .section-padding rhythm used on About / Pricing body sections */
  padding-top: clamp(3.5rem, 8vh, 5.5rem) !important;
  padding-bottom: clamp(4rem, 10vh, 6.5rem) !important;
}
.weroi-login-center {
  width: 100% !important;
  max-width: 56rem !important;
  margin-inline: auto !important;
  display: flex !important;
  justify-content: center !important;
}
.weroi-login-grid {
  width: 100% !important;
  max-width: 52rem !important;
  margin-inline: auto !important;
  justify-items: stretch;
  gap: clamp(1.75rem, 3vw, 2.5rem) !important;
}
.weroi-login-center [data-slot="card"] {
  margin-inline: auto;
  width: 100%;
  max-width: 24rem;
  margin-block: 0 !important;
  box-shadow: 0 0 0 1px rgba(227, 255, 4, 0.12), 0 24px 80px rgba(227, 255, 4, 0.08);
}
.weroi-login-flash {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.88rem;
  line-height: 1.4;
}
.weroi-login-flash[hidden] {
  display: none !important;
}
@media (max-width: 767px) {
  main.weroi-client-login > section.weroi-login-panel,
  section.weroi-login-panel {
    padding-top: clamp(2.5rem, 6vh, 3.5rem) !important;
    padding-bottom: clamp(3rem, 8vh, 4.5rem) !important;
  }
}

/* Nav: geometric W + weROI wordmark */
a.logo.weroi-logo-mark {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.weroi-logo-mark__w {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent !important;
}
.weroi-logo-mark__word {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
@media (min-width: 900px) {
  .weroi-logo-mark__w {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* About / studio: phone+notebook mockup, no card plate */
.weroi-about-visual,
#about.section-padding .weroi-about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.weroi-about-mockup,
#about .weroi-about-mockup {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.weroi-about-mockup__img,
#about .weroi-about-mockup__img {
  display: block;
  width: 100%;
  max-width: min(36rem, 100%);
  height: auto;
  margin-inline: auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}
@media (max-width: 899px) {
  .weroi-about-mockup__img,
  #about .weroi-about-mockup__img {
    max-width: min(22rem, 92vw);
  }
}

.weroi-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
