/*
Theme Name: Allison Pickell Luxury Real Estate
Theme URI: https://allisonpickell.com
Author: Allison Pickell
Description: Editorial luxury real estate theme for Allison Pickell — Little Rock, Arkansas. Includes Listings, Neighborhood Guides and FAQ content types, an editable homepage, and full blog support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: allison-pickell
Tags: real-estate, blog, custom-menu, featured-images, editor-style
*/

/* ---------------------------------------------------------------
   Design tokens (mirrors the reference build)
--------------------------------------------------------------- */
:root {
  --radius: 0.25rem;
  --background: oklch(0.977 0.008 85);
  --foreground: oklch(0.24 0.018 60);
  --card: oklch(0.995 0.004 85);
  --primary: oklch(0.28 0.026 155);
  --primary-foreground: oklch(0.977 0.008 85);
  --secondary: oklch(0.94 0.012 85);
  --muted-foreground: oklch(0.5 0.015 70);
  --accent: oklch(0.72 0.088 75);
  --accent-foreground: oklch(0.22 0.02 60);
  --border: oklch(0.895 0.014 82);
  --brass: oklch(0.68 0.09 75);
  --ivory: oklch(0.965 0.012 85);
  --ink: oklch(0.22 0.018 60);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", ui-sans-serif, system-ui, sans-serif;
  --wrap: 80rem;
}

/* ---------------------------------------------------------------
   Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--foreground); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.25rem; }
.muted { color: var(--muted-foreground); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  margin: 0;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.75rem 1rem; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.btn:hover { opacity: 0.9; }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--accent { background: var(--accent); color: var(--accent-foreground); }
.btn--ghost { border: 1px solid color-mix(in oklab, var(--ivory) 40%, transparent); color: var(--ivory); }
.link-brass { border-bottom: 1px solid var(--brass); padding-bottom: 0.25rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.16em; }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.5rem; max-width: var(--wrap); margin: 0 auto; }
.site-brand__name { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; }
.site-brand__tagline { display: block; margin-top: 0.25rem; }
.primary-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.primary-nav a { color: var(--muted-foreground); transition: color 0.2s ease; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; border: 1px solid var(--border); background: transparent; border-radius: 999px; padding: 0.5rem 0.75rem; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--card); padding: 1rem 1.5rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; font-size: 0.875rem; }
.mobile-nav a { color: var(--muted-foreground); }

@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 639px) {
  .header-actions .btn { display: none; }
}

/* ---------------------------------------------------------------
   Hero + sections
--------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in oklab, var(--ink) 85%, transparent), color-mix(in oklab, var(--ink) 60%, transparent), color-mix(in oklab, var(--ink) 20%, transparent)); }
.hero__inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 7rem 1.5rem; color: var(--ivory); }
.hero__inner > div { max-width: 48rem; }
.hero__inner .eyebrow { color: color-mix(in oklab, var(--ivory) 70%, transparent); }
.hero__inner p.lede { color: color-mix(in oklab, var(--ivory) 80%, transparent); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
@media (min-width: 1024px) { .hero__inner { padding: 10rem 1.5rem; } }

.page-hero { border-bottom: 1px solid var(--border); background: var(--ivory); }
.page-hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.5rem; }
.page-hero h1 { margin-top: 1rem; max-width: 48rem; }
.page-hero p { margin-top: 1.5rem; max-width: 40rem; color: var(--muted-foreground); }
@media (min-width: 1024px) { .page-hero__inner { padding: 6rem 1.5rem; } }

.section { max-width: var(--wrap); margin: 0 auto; padding: 5rem 1.5rem; }
.section--band { border-bottom: 1px solid var(--border); background: var(--ivory); }
.section--band .section__inner { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1.5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--split { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; }
@media (max-width: 900px) { .grid--3, .grid--2, .grid--split { grid-template-columns: 1fr; } }

/* Cards */
.card-guide { display: block; border-top: 1px solid var(--brass); padding-top: 1.5rem; transition: background-color 0.2s ease; }
.card-guide:hover { background: color-mix(in oklab, var(--secondary) 50%, transparent); }
.card-guide h3 { line-height: 1.3; }
.card-guide p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.card-guide .more { display: inline-block; margin-top: 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }

.listing-card { background: var(--card); border: 1px solid var(--border); }
.listing-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__badge { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: var(--accent-foreground); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em; padding: 0.4rem 0.75rem; border-radius: 999px; }
.listing-card__body { padding: 1.5rem; }
.listing-card__price { font-family: var(--font-display); font-size: 1.75rem; }
.listing-card__specs { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground); }
.listing-card__body p { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Article / long-form */
.entry { max-width: 46rem; }
.entry h2 { margin-top: 3rem; }
.entry h3 { margin-top: 2rem; }
.entry p, .entry li { color: var(--muted-foreground); }
.entry ul, .entry ol { padding-left: 1.25rem; }
.entry blockquote { border-left: 2px solid var(--brass); margin: 2rem 0; padding-left: 1.25rem; font-family: var(--font-display); font-size: 1.375rem; color: var(--foreground); }
.entry figure { margin: 2rem 0; }
.highlights { list-style: none; padding: 0; margin: 1.5rem 0; }
.highlights li { border-top: 1px solid var(--border); padding: 0.85rem 0; color: var(--muted-foreground); }

.faq { border-top: 1px solid var(--brass); margin-top: 3rem; padding-top: 2rem; }
.faq__item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq__item h3 { font-size: 1.25rem; }
.faq__item p { margin: 0.6rem 0 0; font-size: 0.9375rem; color: var(--muted-foreground); }

.cta-panel { margin-top: 4rem; background: var(--primary); color: var(--primary-foreground); padding: 3rem; }
.cta-panel h2 { color: var(--primary-foreground); }
.cta-panel p { color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); max-width: 36rem; }

/* Tables (recently sold) */
.table-wrap { overflow-x: auto; }
table.sold { width: 100%; min-width: 36rem; border-collapse: collapse; border-top: 1px solid var(--brass); text-align: left; }
table.sold th { padding: 1rem 0.5rem 1rem 0; font-size: 0.6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-foreground); }
table.sold td { padding: 1.25rem 0.5rem 1.25rem 0; border-top: 1px solid var(--border); font-size: 0.9375rem; color: var(--muted-foreground); }
table.sold td:first-child { font-family: var(--font-display); font-size: 1.25rem; color: var(--foreground); }

/* Forms */
.field { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-foreground); }
.field input, .field select, .field textarea {
  margin-top: 0.5rem; width: 100%; border: 1px solid var(--border); background: var(--card);
  padding: 0.75rem 1rem; font: inherit; font-size: 0.9375rem; color: var(--foreground); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.form-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.form-notice { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.form-error { color: oklch(0.55 0.19 27); }

/* Pagination */
.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; }
.pagination .page-numbers { border: 1px solid var(--border); padding: 0.5rem 0.85rem; color: var(--muted-foreground); }
.pagination .page-numbers.current { border-color: var(--brass); color: var(--foreground); }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 60%, transparent); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.5rem; }
.site-footer__top { display: grid; gap: 3rem; grid-template-columns: 1fr 2fr; }
.site-footer__brand { font-family: var(--font-display); font-size: 1.875rem; }
.site-footer__brand + p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-hubs { display: grid; gap: 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-hubs ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; font-size: 0.875rem; }
.footer-hubs a { color: var(--muted-foreground); transition: color 0.2s ease; }
.footer-hubs a:hover { color: var(--foreground); }
.site-footer__bottom { margin-top: 3.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr; } .footer-hubs { grid-template-columns: 1fr; } }

/* WordPress core alignment/caption classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.sticky, .gallery-caption, .bypostauthor { }
