/* AvaRyan Home Buyers - shared styles */
:root {
  --navy: #1a2b4a;
  --navy-light: #2a4068;
  --warm: #c4784a;
  --warm-hover: #a8643a;
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --border: #ddd6cc;
  --radius: 8px;
  --max: 720px;
  --max-wide: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; }
a { color: var(--warm); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--warm-hover); }

.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: var(--max);
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo span { color: var(--warm); }

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--white); text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .lede {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 36em;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: var(--warm);
  color: var(--white);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--warm-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--white);
}

.section h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section p + p { margin-top: 0.85rem; }

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Cards / features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.section-alt .feature {
  background: var(--cream);
}

.feature h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Contact block */
.contact-box {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.contact-box h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact-box ul {
  list-style: none;
  margin: 0.75rem 0 0;
}

.contact-box li {
  margin: 0.4rem 0;
}

.contact-box a { font-weight: 500; }

/* Legal pages */
.legal {
  padding: 2.5rem 0 3.5rem;
}

.legal h1 {
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.legal h3 {
  font-size: 1.05rem;
  color: var(--navy-light);
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
}

.legal p, .legal li {
  color: var(--text);
  margin-bottom: 0.65rem;
}

.legal ul, .legal ol {
  margin: 0.5rem 0 1rem 1.4rem;
}

.legal li { margin-bottom: 0.4rem; }

.legal .note {
  background: var(--cream-dark);
  border-left: 3px solid var(--warm);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 2.25rem 0 1.75rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}

.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li { margin: 0.3rem 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-bottom p + p { margin-top: 0.35rem; }

/* Utility */
.mt-1 { margin-top: 1rem; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 560px) {
  .hero { padding: 2.5rem 0 2.25rem; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; display: inline-block; }
  .section { padding: 2.25rem 0; }
}
