/* ============================================================
   Homeowner Companion — Marketing site styles
   House & Home Enterprises LLC
   ============================================================ */

:root {
  /* Color palette — warmer than the app, pulls accents from B4 blue */
  --cream: #faf6f0;
  --cream-deep: #f1ebe0;
  --paper: #fefcf8;
  --ink: #2a2620;
  --ink-soft: #5d564b;
  --ink-faint: #968b78;
  --blue: #3b6fa8;
  --blue-deep: #274d7d;
  --blue-darker: #1c3a62;
  --rust: #b87349;
  --rust-soft: #d5a087;
  --line: #e5dccb;
  --line-soft: #efe7d6;
  --mist: #eaf1f8;

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;

  /* Layout */
  --max-w: 1180px;
  --max-w-prose: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow-sm: 0 1px 2px rgba(28,58,98,.04), 0 4px 12px rgba(28,58,98,.06);
  --shadow-md: 0 4px 16px rgba(28,58,98,.08), 0 24px 48px rgba(28,58,98,.06);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper texture using an inline noise pattern */
  background-image:
    radial-gradient(ellipse 1200px 600px at 20% -10%, rgba(184,115,73,.06), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 90% 110%, rgba(59,111,168,.05), transparent 60%);
  min-height: 100vh;
}

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 300; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 400; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; }
h4 { font-size: 17px; font-weight: 600; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-deep); }

p { margin-bottom: 1em; max-width: 60ch; }

a { color: var(--blue-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
a:hover { border-color: var(--blue-deep); }

img, svg { display: block; max-width: 100%; }

/* ============================================================ Containers ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================ Top bar ============================================================ */

.topbar {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-text .org {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  border: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--blue-deep);
}
.nav-links a.active {
  color: var(--blue-deep);
}

@media (max-width: 700px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .brand-text .org { display: none; }
}

/* ============================================================ Hero ============================================================ */

.hero {
  padding: clamp(60px, 12vh, 140px) 0 clamp(80px, 14vh, 160px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 8vw, 90px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--blue-deep);
  font-weight: 300;
}

.hero-lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-aside {
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-aside svg {
  flex-shrink: 0;
  color: var(--blue);
}

/* The decorative SVG block */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  aspect-ratio: 1;
}

@media (max-width: 880px) {
  .hero-art {
    max-width: 380px;
    justify-self: center;
  }
}

/* ============================================================ Buttons ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-darker);
  transform: translateY(-1px);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  border-color: var(--ink-soft);
}

/* ============================================================ Section: features ============================================================ */

.section {
  padding: clamp(60px, 10vh, 110px) 0;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 18px;
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature {
  padding: 32px 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================ Privacy callout ============================================================ */

.privacy-callout {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 56px);
  margin-top: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line-soft);
}

@media (max-width: 700px) {
  .privacy-callout { grid-template-columns: 1fr; gap: 18px; }
}

.privacy-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-callout h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.privacy-callout p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================ CTA section ============================================================ */

.cta-section {
  background: linear-gradient(160deg, var(--blue), var(--blue-deep) 65%, var(--blue-darker));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(50px, 8vw, 80px);
  margin: 60px var(--gutter);
  text-align: center;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  max-width: 56ch;
  margin: 0 auto 32px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--blue-darker);
}
.cta-section .btn-primary:hover {
  background: var(--cream);
}

/* ============================================================ Prose pages (privacy, terms, support) ============================================================ */

.prose-page {
  padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 10vh, 120px);
}

.prose-page .eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 14px;
}

.prose-page h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 48px);
}

.prose-page .lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  line-height: 1.65;
}

.prose-page h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
}

.prose-page h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 500;
}

.prose-page p, .prose-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.prose-page p { margin-bottom: 16px; }
.prose-page ul, .prose-page ol { margin: 0 0 16px 24px; }
.prose-page li { margin-bottom: 8px; }

.prose-page strong { font-weight: 600; color: var(--ink); }

.notice {
  background: #fff8eb;
  border-left: 3px solid var(--rust);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.notice b { color: #8b5a30; }

.meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

/* ============================================================ Footer ============================================================ */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 50px 0 40px;
  background: var(--paper);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 740px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 24em;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  border: none;
}
.footer-col a:hover {
  color: var(--blue-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ============================================================ Pros page (B2B) ============================================================ */

.pros-hero {
  padding: clamp(60px, 10vh, 120px) 0 clamp(40px, 8vh, 80px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: 1px solid var(--line);
}

.pros-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.pros-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--blue-darker);
}

.pros-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* B2B inquiry form */
.b2b-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line-soft);
}

.b2b-form .field {
  margin-bottom: 18px;
}

.b2b-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.b2b-form input,
.b2b-form select,
.b2b-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s;
}

.b2b-form input:focus,
.b2b-form select:focus,
.b2b-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.b2b-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* ============================================================ Animations ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
