/* ==========================================================================
   REPOSIT SOLAR (026) — 1:1 Fullscreen Locked-Camera Morning/Night Solar Home
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; }
body {
  background: #0D0E10;
  color: #F4F3E6;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0 !important;
  transition: color 0.55s ease, background 0.55s ease;
}
body.light-theme {
  background: #EFE7D6;
  color: #2B2A26;
}
h1, p, a, button, span { letter-spacing: 0; }
[dir="ltr"], [lang="en"] { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Full-Viewport Locked-Camera Day/Night Solar House */
.rep-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 52px) 28px;
  overflow: hidden;
}

.rep-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rep-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s ease;
}
/* Morning layer sits on top and wipes vertically down/up on toggle! */
.rep-bg-morning {
  clip-path: inset(0 0 100% 0);
}
body.light-theme .rep-bg-morning {
  clip-path: inset(0 0 0% 0);
}

.rep-vignette-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.72) 0%, transparent 100%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
body.light-theme .rep-vignette-top {
  background: linear-gradient(180deg, rgba(239, 231, 214, 0.78) 0%, transparent 100%);
}
.rep-vignette-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36%;
  z-index: 1;
  background: linear-gradient(0deg, rgba(13, 14, 16, 0.85) 0%, transparent 100%);
  pointer-events: none;
}
body.light-theme .rep-vignette-bot {
  background: linear-gradient(0deg, rgba(216, 210, 197, 0.88) 0%, transparent 100%);
}

/* Top Navbar */
.rep-navbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rep-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.25rem;
}
.rep-logo svg { width: 28px; height: 28px; color: #D6F05A; }
body.light-theme .rep-logo svg { color: #2B2A26; }

.rep-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rep-dir-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
}
body.light-theme .rep-dir-pill { background: rgba(43, 42, 38, 0.10); }
html.cfx-embed-preview .rep-dir-pill { display: none !important; }

.rep-burger {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 90;
}
body.light-theme .rep-burger { border-color: rgba(43, 42, 38, 0.25); background: rgba(255, 255, 255, 0.55); }
.rep-burger i {
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.rep-burger.is-open { color: #FFFFFF !important; border-color: rgba(255,255,255,0.3); background: #111; }
.rep-burger.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rep-burger.is-open i:nth-child(2) { opacity: 0; }
.rep-burger.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Centered Hero Content + Sliding Morning/Night Toggle */
.rep-center {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: clamp(18px, 3vh, 42px) 0 10px;
}
.rep-h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1.14;
  max-width: 16ch;
}
.rep-accent {
  opacity: 0.62;
  transition: color 0.4s ease, opacity 0.4s ease;
}
body.light-theme .rep-accent {
  color: #FFFFFF;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(43, 42, 38, 0.22);
}

.rep-bottom-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.rep-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 16, 18, 0.68);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
body.light-theme .rep-toggle {
  background: rgba(43, 42, 38, 0.16);
  border-color: rgba(43, 42, 38, 0.18);
}
.rep-t-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.rep-t-btn strong { display: block; font-size: 0.92rem; }
.rep-t-btn small { display: block; font-size: 0.72rem; opacity: 0.78; }
.rep-t-btn.is-active {
  background: #F5F5E7;
  color: #141517;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.rep-guarantee {
  font-size: 0.84rem;
  max-width: 54ch;
  opacity: 0.85;
  text-align: center;
}

/* Full-Screen #000000 Hamburger Navigation Drawer */
.rep-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000000;
  color: #FFFFFF;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}
.rep-drawer.is-open { display: flex; }
.rep-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
}
.rep-drawer-links a { color: rgba(255, 255, 255, 0.82); }
.rep-drawer-links a:hover { color: #D6F05A; }
.rep-quote-cta {
  margin-top: 14px;
  padding: 13px 28px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
