@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro");

/* Styles for Living Home front page */
body {}

/* Global scrollbar fallback from investments.css */
html {
  scrollbar-width: thin !important;
  scrollbar-color: #5ed6dd transparent !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
  background: transparent !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #5ed6dd !important;
  border-radius: 999px !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #4bcad1 !important;
}

*::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

*::-webkit-scrollbar-track {
  background: transparent !important;
}

*::-webkit-scrollbar-thumb {
  background: #5ed6dd !important;
  border-radius: 999px !important;
}

*::-webkit-scrollbar-thumb:hover {
  background: #4bcad1 !important;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Neue Haas Grotesk Display Pro" !important;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  font-family: "Neue Haas Grotesk Display Pro" !important;
}

p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

section {
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.button-primary {
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.button-primary:hover {
  background: #1f2937;
}
.site-header {
  position: relative;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
}
.site-header .logo {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 300px;
  height: auto;
}
.icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}
.icon-button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.icon-button img {
  width: 24px;
  height: 24px;
}
.menu-toggle {
  display: none;
  appearance: none;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  position: absolute;
  left: 20px;
  top: 50%;
  padding: 0;
  transform: translateY(-50%);
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: none;
}
.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  outline: none !important;
}
.menu-toggle__icon-close {
  display: none;
}
.menu-toggle.is-open .menu-toggle__icon-open {
  display: none;
}
.menu-toggle.is-open .menu-toggle__icon-close {
  display: block;
}
.search-wrap {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}
.search-wrap.hidden {
  display: none;
}
.search-wrap input {
  width: 250px;
  padding: 6px;
}
.search-results {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 6px;
}
.search-results h3 {
  margin: 6px 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.search-results li a {
  display: block;
  padding: 4px 6px;
  text-decoration: none;
  color: inherit;
}
.search-results li a:hover {
  background: #f0f0f0;
}
.hero {
  background: #fff;
  text-align: center;
  padding: 60px 0 0;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
}
.skyline {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 100%;
  overflow: hidden;
}
.skyline img {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
}
.skyline-dark {
  background: #000;
}
.skyline-light {
  background: #f3f3f3;
}
.city-divider {
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}
.city-divider img {
  max-height: 100px;
  object-fit: contain;
  object-position: bottom center;
}
.city-divider img.side {
  width: auto;
  flex: 1 1 auto;
}
.demo {
  background: #fff;
  color: var(--text-color);
  text-align: center;
  padding: 40px 0;
}

.demo h2 {
  margin-bottom: 24px;
}

.demo-chat {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  list-style: none;
}

.chat-message {
  padding: 12px 16px;
  border-radius: 8px;
}

.chat-message.user {
  background: #ffffff;
  color: #6b7280;
  align-self: flex-start;
}

.chat-message.liv {
  background: #0b7aec;
  color: #fff;
  align-self: flex-end;
}
.cta {
  background: #fff;
  color: var(--text-color);
  text-align: center;
  padding: 60px 0;
}
.cta p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #5ed6dd;
  border-color: #5ed6dd;
  color: #000;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover {
  background: #50c7ce;
  color: #000;
}

.cta-btn .shader-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

.login-cta {
  background: #fff;
  /* Light mode readable text */
  color: #111827;
}

.main-nav {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}
.main-nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding: 6px 8px;
}
.main-nav a:hover {
  text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  padding: 40px 0;
}
.project-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  overflow: hidden;
  text-align: center;
}
.project-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 0;
}
.project-card a:hover {
  text-decoration: underline;
}
.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.project-card h3 {
  font-size: 1rem;
  margin: 10px;
}
.project-card p {
  font-size: 0.9rem;
  margin: 0 10px 10px;
}

.project-collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 40px 0;
}
.project-collage.is-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 40px 4px;
  scrollbar-color: #00ffff transparent;
  scrollbar-width: thin;
}

/* Hide the horizontal scrollbar for the collage on all devices */
.project-collage.is-scroll {
  scrollbar-width: none !important;
}
.project-collage.is-scroll::-webkit-scrollbar {
  height: 0 !important;
  display: none !important;
}
.project-collage.is-scroll::-webkit-scrollbar {
  height: 8px;
}
.project-collage.is-scroll::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 999px;
}

.collage-item {
  overflow: hidden;
  border-radius: 8px;
}
.project-collage.is-scroll .collage-item {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-collage .collage-item:nth-child(odd) {
  transform: rotate(-2deg);
}

.project-collage .collage-item:nth-child(even) {
  transform: rotate(2deg);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 0;
  text-align: center;
  background: #fff;
}

.feature-card {
  padding: 20px;
}

.feature-card svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin-top: 0;
}

/* Advanced reveal animation */
.section-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility section themes */
.dark-section {
  background: #000;
  color: #fff;
}
.dark-section svg {
  fill: currentColor;
}

.site-footer {
  background: #f5f5f5;
  text-align: center;
  padding: 20px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-nav a {
  text-decoration: none;
  color: inherit;
}
.footer-nav a:hover {
  text-decoration: underline;
}

.footer__sustainable-energy {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.footer__sustainable-energy-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: inherit;
}

.footer__sustainable-energy-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.footer__sustainable-energy-highlight-bg {
  position: absolute;
  inset: 50% -8px auto -8px;
  height: 1.95em;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.footer__sustainable-energy-highlight-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__sustainable-energy-highlight-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: #111;
  padding: 0 2px;
}

/* Ensure distinct backgrounds */
.hero {
  background-color: #fff;
}

.features {
  background-color: #fff;
}

.cta {
  background-color: #fff;
  color: var(--text-color);
}

.acquisition,
.lead-form,
#projects,
#projectCollage {
  background-color: #fff;
}

.acquisition.glass-panel,
.lead-form.glass-panel {
  border: none;
  box-shadow: none;
  background: none;
}

.acquisition {
  padding: 40px 0;
  text-align: center;
}

.acquisition-step {
  padding: 20px;
}

.acquisition-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.acquisition-logo {
  max-width: 180px;
  justify-self: center;
}

.acquisition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

@media (max-width: 600px) {
  .acquisition-content {
    grid-template-columns: 1fr;
  }
  .acquisition-logo {
    display: none;
  }}

.lead-form {
  padding: 40px 0;
  text-align: center;
}

.lead-form form {
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.lead-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.lead-form button {
  margin-top: 8px;
}
.post {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}
.post:hover {
  border-color: #111827;
}
.post h2 {
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 0;
}
.post .meta {
  color: #9ca3af;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .site-header {
    justify-content: center;
    min-height: 64px;
  }
  .site-header .logo {
    max-width: 200px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    z-index: 1001;
  }
  .main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    line-height: 1.2;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(15, 23, 42, 0.05);
    outline: none;
  }
  .main-nav.open {
    display: flex;
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0 0;
  }
  .project-card {
    padding: 16px;
  }
  .project-card h3 {
    margin: 10px 0 6px;
  }
  .project-card p {
    margin: 0 0 8px;
  }
  .search-wrap {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  .icons {
    top: 50%;
    transform: translateY(-50%);
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    margin: 0 auto 20px;
  }

  .city-divider img {
    max-height: 70px;
  }

  .demo-chat {
    padding: 0 20px;
  }}
