/* Clean WEBO / WECO layout reset - centered, readable, contained */

* {
  box-sizing: border-box !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  background: #eef2f7 !important;
  color: #111827 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Center the whole site content */
body > nav,
body > main,
body > section,
body > div,
.wecoown-main-nav,
.site-footer-contact {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Top menu */
.wecoown-main-nav {
  width: calc(100% - 48px) !important;
  margin-top: 22px !important;
  margin-bottom: 24px !important;
  padding: 16px 22px !important;
  background: #ffffff !important;
  border: 1px solid #d4dbe7 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
}

.wecoown-main-nav .brand {
  color: #0f172a !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.wecoown-main-nav .nav-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px 18px !important;
}

.wecoown-main-nav a {
  background: transparent !important;
  color: #172033 !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Hero sections centered and contained */
.hero,
.homepage-hero,
section:first-of-type {
  width: calc(100% - 48px) !important;
  max-width: 1180px !important;
  margin: 0 auto 42px auto !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Make overlay less cloudy and text more readable */
.hero::before,
.homepage-hero::before,
section:first-of-type::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    90deg,
    rgba(15,23,42,.78) 0%,
    rgba(15,23,42,.54) 45%,
    rgba(15,23,42,.25) 100%
  ) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.hero > *,
.homepage-hero > *,
section:first-of-type > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Main hero text */
.hero h1,
.homepage-hero h1,
section:first-of-type h1 {
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.55) !important;
}

.hero p,
.homepage-hero p,
section:first-of-type p {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.55) !important;
}

/* Fix AI Deal Rooms + Shared Ownership / AI-ready marketplace */
.eyebrow,
.kicker,
.badge,
[class*="eyebrow"],
[class*="kicker"],
[class*="badge"],
.hero p:first-child,
.homepage-hero p:first-child,
section:first-of-type p:first-child {
  color: #082f49 !important;
  background: rgba(255,255,255,.86) !important;
  display: inline-block !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

/* Forms should not be huge */
form {
  width: calc(100% - 48px) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 22px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #d4dbe7 !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.08) !important;
}

input,
textarea,
select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
}

/* Cards/listings centered and contained, but not form-sized */
.card,
.listing-card,
article,
.admin-panel {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d4dbe7 !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.10) !important;
}

/* Contact/footer */
.site-footer-contact,
.site-contact-strip {
  width: calc(100% - 48px) !important;
  max-width: 1180px !important;
  margin: 32px auto !important;
  padding: 20px 24px !important;
  background: #ffffff !important;
  border: 1px solid #d4dbe7 !important;
  border-radius: 18px !important;
  color: #111827 !important;
}

.site-footer-contact a,
.site-contact-strip a {
  color: #0f766e !important;
  font-weight: 800 !important;
}

/* Buttons */
button,
.button,
.btn,
.btn-primary,
input[type="submit"] {
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
  border: 0 !important;
}

/* Prevent nav links from becoming buttons */
.wecoown-main-nav a {
  background: transparent !important;
  color: #172033 !important;
  box-shadow: none !important;
}

/* Page titles on forms */
body > h1,
main > h1,
.page-title {
  width: calc(100% - 48px) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media(max-width: 850px) {
  .wecoown-main-nav {
    display: block !important;
  }

  .wecoown-main-nav .brand {
    display: block !important;
    margin-bottom: 14px !important;
  }

  .wecoown-main-nav .nav-links {
    justify-content: flex-start !important;
    gap: 10px 14px !important;
  }

  .hero,
  .homepage-hero,
  section:first-of-type,
  form,
  .site-footer-contact,
  .site-contact-strip {
    width: calc(100% - 24px) !important;
  }
}
