/*
Theme Name: NorthWestern REIG
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Rustic-meets-professional custom WordPress theme for a real estate investment brand focused on Spokane and North Idaho.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: northwestern-reig
*/

:root {
  --bg: #f6f2ea;
  --panel: #fffdfa;
  --ink: #1d2c2a;
  --muted: #5b685f;
  --line: #d9d2c4;
  --brand: #1f3b36;
  --brand-2: #284f47;
  --accent: #b78d4a;
  --accent-dark: #8c6a34;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(24, 29, 26, 0.08);
  --radius: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(800px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(183, 141, 74, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}
.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: relative;
  box-shadow: var(--shadow);
}
.brand-badge::before,
.brand-badge::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255,255,255,0.88);
  border-radius: 10px;
  transform: skew(-14deg);
}
.brand-badge::after {
  inset: 15px 8px 15px 20px;
  transform: skew(14deg);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-text span { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-menu,
.nav-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
  align-items: center;
}
.nav-menu a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.96rem;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background: rgba(183, 141, 74, 0.12);
  color: var(--brand);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.button.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(31, 59, 54, 0.18);
  box-shadow: none;
}

.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,141,74,0.18), transparent 68%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(183, 141, 74, 0.12);
  color: var(--accent-dark);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 0.98; margin: 1rem 0; }
.hero p.lead, .page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 58ch; }
.hero-card, .card, .stat, .feature, .buy-box, .contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 2rem;
  position: relative;
}
.hero-card::before {
  content: "NorthWestern REIG";
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}
.deal-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.deal-list li { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.deal-list li:first-child { border-top: 0; padding-top: 0; }
.deal-list strong { display: block; }
.deal-list span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 4.5rem 0; }
.section-alt { background: rgba(255,255,255,0.4); border-top: 1px solid rgba(31,59,54,0.06); border-bottom: 1px solid rgba(31,59,54,0.06); }
.section-title { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; margin: 0 0 0.75rem; }
.section-copy { color: var(--muted); max-width: 60ch; }
.grid-3, .grid-4, .grid-2 {
  display: grid;
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature, .buy-box, .stat, .contact-panel { padding: 1.5rem; }
.feature h3, .buy-box h3, .contact-panel h3 { margin-top: 0.25rem; margin-bottom: 0.55rem; font-size: 1.2rem; }
.feature p, .buy-box p, .contact-panel p, .stat p { color: var(--muted); margin: 0; }
.stat strong { display: block; font-size: 2rem; color: var(--brand); line-height: 1; margin-bottom: 0.4rem; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(183,141,74,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.page-hero { padding: 4rem 0 2rem; }

.cta-band {
  padding: 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: calc(var(--radius) + 2px);
  color: var(--white);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-top: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.1; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 58ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1rem; }
.cta-band .button { background: var(--white); color: var(--brand); }
.cta-band .button.secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--brand); }

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: 0.45rem; }
input, textarea, select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
textarea { min-height: 160px; resize: vertical; }
.note { color: var(--muted); font-size: 0.92rem; }

.post-content,
.entry-content { padding: 2rem 0 4rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--brand); }

@media (max-width: 960px) {
  .hero-grid, .contact-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.9rem 0; }
  .nav-menu, .nav-menu ul { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero { padding-top: 3.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
