* { box-sizing: border-box; }
/* Align with app.ownerfi.app — blue-400, lighter than #2563eb */
:root {
  --link-color: #71a1c1;
}
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; line-height: 1.6; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
header { padding: 1rem 0; border-bottom: 1px solid #eee; background: #fff; }
nav a { margin-right: 1.5rem; color: #333; text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* Nested navigation (sub-menus) */
.nav-root {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link { display: inline-block; }
.nav-submenu {
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: none;
  z-index: 50;
}
.nav-submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  margin-right: 0 !important;
}
.nav-root > .nav-item > .nav-submenu li a { margin-right: 0 !important; }
.nav-item:hover > .nav-submenu { display: block; }

@media (max-width: 600px) {
  .nav-root {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .nav-submenu {
    position: static;
    display: block;
    border: none;
    background: transparent;
    min-width: 0;
    padding-left: 1rem;
    margin-top: 0.25rem;
  }
  .nav-item:hover > .nav-submenu { display: block; }
}
.hero { padding: 4rem 0; text-align: center; }
.hero-headline { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-headline h1, .hero-headline h2, .hero-headline h3 { margin: 0 0 0.25em; }
.hero-headline p { margin: 0; }
.hero-subtext { font-size: 1.125rem; color: #666; max-width: 600px; margin: 0 auto 1.5rem; }
.hero-subtext p { margin: 0 0 0.5em; }
.cta { display: inline-block; padding: 0.75rem 1.5rem; background: #2563eb; color: #fff; text-decoration: none; border-radius: 6px; }
.cta:hover { background: #1d4ed8; }
.block { padding: 2rem 0; }
.richtext h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.richtext p { margin-bottom: 1rem; }
footer { padding: 2rem 0; border-top: 1px solid #eee; margin-top: 3rem; text-align: center; color: #666; font-size: 0.875rem; }
.image-block img { max-width: 100%; height: auto; display: block; }
.contact-form { max-width: 480px; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: 0.25rem; }
.form-field input, .form-field textarea { width: 100%; padding: 0.5rem; }
.form-success { color: green; padding: 1rem 0; }
.cmspro-btn { display: inline-block; padding: 0.5rem 1rem; background: #2563eb; color: #fff; text-decoration: none; border-radius: 6px; }
.cmspro-btn:hover { background: #1d4ed8; }
.cmspro-field { margin: 0.75em 0; }
.cmspro-field label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.cmspro-field input, .cmspro-field textarea { width: 100%; max-width: 400px; padding: 0.5rem; }

/* Basic site / blog shell (OwnerFi CMSPro) */
body.basicsite { background: #f8fafc; color: #1e293b; }
body.basicsite .header { background: #fff; box-shadow: 0 1px 0 #e2e8f0; }
body.basicsite main .container .richtext,
body.basicsite main .blog-posts-index,
body.basicsite main .blog-recent-posts { max-width: 42rem; margin-left: auto; margin-right: auto; }
body.basicsite .footer { background: #fff; border-top: 1px solid #e2e8f0; text-align: left; }
body.basicsite .footer .copyright { text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
/* In-content and footer text links (header nav stays #333; .cta / .cmspro-btn / .cta-btn stay as styled) */
body.basicsite main .block a:not(.cta):not(.cmspro-btn):not(.cta-btn),
body.basicsite .footer a {
  color: var(--link-color);
}
/* Richtext “CTA button” from CMS admin (TipTap insert) — was only styled inside the editor */
body.basicsite main .block a.cta-btn,
body.basicsite main .richtext a.cta-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
}
body.basicsite main .block a.cta-btn:hover,
body.basicsite main .richtext a.cta-btn:hover {
  background: #1d4ed8;
  color: #fff !important;
}
/* TipTap “Blue” swatch was #2563eb — lift to site link color without clobbering other chosen colors */
body.basicsite main .block .richtext a:not(.cta-btn)[style*="#2563eb"],
body.basicsite main .block .richtext a:not(.cta-btn)[style*="rgb(37, 99, 235)"],
body.basicsite main .block .richtext a:not(.cta-btn) span[style*="#2563eb"],
body.basicsite main .block .richtext a:not(.cta-btn) span[style*="rgb(37, 99, 235)"],
body.basicsite main .block .hero-headline a:not(.cta-btn)[style*="#2563eb"],
body.basicsite main .block .hero-headline a:not(.cta-btn)[style*="rgb(37, 99, 235)"],
body.basicsite main .block .hero-headline a:not(.cta-btn) span[style*="#2563eb"],
body.basicsite main .block .hero-headline a:not(.cta-btn) span[style*="rgb(37, 99, 235)"],
body.basicsite main .block .hero-subtext a:not(.cta-btn)[style*="#2563eb"],
body.basicsite main .block .hero-subtext a:not(.cta-btn)[style*="rgb(37, 99, 235)"],
body.basicsite main .block .hero-subtext a:not(.cta-btn) span[style*="#2563eb"],
body.basicsite main .block .hero-subtext a:not(.cta-btn) span[style*="rgb(37, 99, 235)"] {
  color: var(--link-color) !important;
}
body.basicsite main .blog-posts-index a:not(.cmspro-btn),
body.basicsite main .blog-recent-posts a:not(.cmspro-btn) {
  color: var(--link-color) !important;
}
body.basicsite .ownerfi-fs-mirror .ownerfi-fs-filename-btn {
  color: var(--link-color);
}
