/* ============================================================
   Yvonne Russell Realty — Interior page styles
   ============================================================ */

/* --- Page hero (interior) --- */
.page-hero { position: relative; padding: clamp(8rem, 12vw, 11rem) 0 var(--space-6); overflow: hidden; isolation: isolate; color: var(--white); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(140deg, var(--dusk), var(--dusk-deep) 55%, var(--clay-deep)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 85% 0%, oklch(74% 0.15 66 / 0.28), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--text-3xl); font-weight: 400; color: var(--white); max-width: 20ch; text-wrap: balance; margin-top: 0.9rem; }
.page-hero .lede { color: oklch(96% 0.01 80 / 0.85); margin-top: 1.1rem; }
.page-hero .eyebrow { color: var(--amber-soft); }
.page-hero .eyebrow::before { background: var(--amber-soft); }
.crumbs { display: flex; gap: 0.5rem; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: oklch(96% 0.01 80 / 0.6); font-weight: 700; }
.crumbs a:hover { color: var(--white); }

/* --- Prose --- */
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: var(--text-xl); margin-top: 2.5rem; }
.prose h3 { font-size: var(--text-lg); margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.prose a { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- Feature list (buy/sell/military steps) --- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .n { counter-increment: step; font-family: var(--font-display); font-size: 1.6rem; font-style: italic; color: var(--clay); width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--bone-2); border: 1px solid var(--line); }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--text-lg); }
.step p { color: var(--text-muted); font-size: var(--text-sm); margin-top: 0.35rem; }

/* --- Value grid (bento) --- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.vcard { padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.vcard.span2 { grid-column: span 2; }
.vcard .ico { width: 3rem; height: 3rem; border-radius: var(--r-sm); display: grid; place-items: center; background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: var(--white); margin-bottom: 1.1rem; }
.vcard h3 { font-size: var(--text-lg); }
.vcard p { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.5rem; }

/* --- Contact / form --- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.75rem); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-base); padding: 0.85rem 1rem; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bone);
  color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px oklch(58% 0.13 42 / 0.15); }
.field.err input, .field.err select, .field.err textarea { border-color: oklch(55% 0.19 28); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 0.4rem; font-size: var(--text-sm); font-weight: 600; }
.form-status.ok { color: var(--clay-deep); }
.form-status.err { color: oklch(50% 0.19 28); }
.form-card .btn { width: 100%; margin-top: 0.4rem; }

.contact-info { display: grid; gap: 1.5rem; }
.office-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bone-2); }
.office-card h3 { font-size: var(--text-lg); }
.office-card .row { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 0.8rem; font-size: var(--text-sm); }
.office-card .row svg { flex: none; color: var(--clay); margin-top: 0.15rem; }
.office-card a { font-weight: 600; }
.map-embed { border: 0; width: 100%; aspect-ratio: 16/10; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }

/* --- IG grid --- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.ig-grid a { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); position: relative; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.ig-grid a:hover img { transform: scale(1.08); }

/* --- Stat band --- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-band .s b { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; display: block; color: var(--clay); }
.stat-band .s span { font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); font-weight: 700; }

/* --- Split feature (military) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.split.rev > :first-child { order: 2; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .vcard.span2 { grid-column: span 2; }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 780px) {
  .contact-grid, .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .vcard.span2 { grid-column: span 1; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
