/* blog.css -- AB&CO blog styles. Matches the main site's header, hero,
   footer, and brand colors so /blog/ reads as part of asherblackrealtor.com. */

:root {
  --brand-orange: #FF5003;
  /* Darker orange for default link text on white -- passes AA (4.5:1).
     Pure brand orange is reserved for buttons, hero accents on navy, and
     hover/focus states, where its contrast already clears AA. */
  --link-orange: #CC4002;
  --navy: #1B2432;
  --navy-soft: #262f40;
  --text: #1a1a1a;
  --muted: #5a5f68;
  --border: #e3e3e3;
  --header-h: 80px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  font-size: 17px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link-orange);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-orange);
  text-decoration: underline;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* ---- Header ------------------------------------------------------- */

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.site-logo img {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--brand-orange);
  text-decoration: none;
}

.site-nav a.is-current {
  color: var(--brand-orange);
}

.site-nav a.btn-cta {
  background: var(--brand-orange);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  /* 19.2px bold clears the WCAG "large text" threshold (18.66px bold),
     so the 3.28:1 white-on-orange ratio meets the 3:1 AA requirement. */
  font-size: 1.2rem;
}

.site-nav a.btn-cta:hover,
.site-nav a.btn-cta:focus {
  background: #e04600;
  color: #ffffff;
  text-decoration: none;
}

/* ---- Hero ----------------------------------------------------------- */

.hero {
  background: var(--navy);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #ffffff;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #ffffff;
}

.hero .accent {
  color: var(--brand-orange);
}

.hero-index .hero-sub {
  margin: 0;
  max-width: 640px;
  font-size: 1.15rem;
  color: #d7dbe4;
}

.hero-post {
  padding-top: 4px;
}

.hero-post .hero-inner {
  padding: 40px 20px 48px;
}

.hero-post h1 {
  font-size: 2.2rem;
}

.hero-eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.hero-meta {
  margin: 0;
  color: #c9cedb;
  font-size: 0.95rem;
}

/* ---- Main content ----------------------------------------------------- */

.site-main {
  display: block;
}

.index-page,
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.post {
  padding-bottom: 0;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 30px 0 10px;
}

/* ---- Post cards (index) ------------------------------------------------ */

.post-list {
  display: flex;
  flex-direction: column;
}

.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.post-card:first-child {
  padding-top: 0;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.post-card h2 a {
  color: var(--text);
}

.post-card h2 a:hover,
.post-card h2 a:focus {
  color: var(--brand-orange);
  text-decoration: none;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.post-description {
  margin: 0 0 10px;
  color: var(--text);
}

.read-more {
  font-weight: 700;
}

/* ---- Post page ---------------------------------------------------------- */

.post-body {
  margin-top: 8px;
}

.post-body p {
  margin: 0 0 1.2em;
}

.post-body h2 {
  margin-top: 1.7em;
}

.post-body h3 {
  margin-top: 1.4em;
  font-size: 1.15rem;
}

.post-body img {
  border-radius: 10px;
  margin: 1.2em 0;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-body blockquote {
  margin: 1.4em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--brand-orange);
  color: var(--muted);
}

.more-posts {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.more-posts h2 {
  margin-top: 0;
}

.more-posts ul {
  padding-left: 20px;
  margin: 0;
}

.more-posts li {
  margin-bottom: 10px;
}

/* ---- Newsletter ---------------------------------------------------------- */

#newsletter-signup {
  margin: 48px 0 8px;
  padding: 28px;
  border: 1px solid #e6e1da;
  border-radius: 10px;
  background: #faf8f5;
  color: var(--muted);
}

.newsletter h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--text);
}

.newsletter p {
  margin: 0 0 14px;
  color: #555;
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #d7dbe4;
  margin-top: 24px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-col-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-brand-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.footer-address {
  margin: 0 0 10px;
}

.site-footer a {
  color: #d7dbe4;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--brand-orange);
}

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

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

.site-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #9aa1b0;
}

.site-footer-bottom p {
  margin: 0 0 6px;
}

/* ---- Responsive ----------------------------------------------------------- */

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

@media (max-width: 640px) {
  .site-header-inner {
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    gap: 14px 18px;
  }

  .hero-inner {
    padding: 40px 20px;
  }

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

  .hero-post h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .index-page,
  .post {
    padding: 28px 16px 40px;
  }
}
