/* =============================================================
   ROCKRIDGE GUIDE — Design System
   Sean Walsh · Cush Real Estate · DRE #01993112
   ============================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Color Palette */
  --color-bg: #111210;
  --color-bg-alt: #181a17;
  --color-surface: #1e2020;
  --color-surface-2: #252827;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.12);

  --color-text: #e8e5df;
  --color-text-muted: #9a9690;
  --color-text-faint: #6b6762;

  --color-accent: #8aad8c;
  /* muted sage green */
  --color-accent-dark: #5c7a5e;
  --color-accent-warm: #b8966b;
  /* warm tan accent */

  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi: 600;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--weight-semi);
  line-height: 1.2;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-warm {
  color: var(--color-accent-warm);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

/* Font-size atomic utilities (round out the existing .text-sm / .text-xs set) */
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

/* Color utilities (round out the existing .text-muted / .text-accent set) */
.text-faint { color: var(--color-text-faint); }
.text-default { color: var(--color-text); }

/* Font-weight utilities */
.font-normal { font-weight: var(--weight-normal); }
.font-medium { font-weight: var(--weight-medium); }
.font-semi { font-weight: var(--weight-semi); }

/* Line-height utilities */
.leading-tight { line-height: 1.2; }
.leading-snug { line-height: 1.5; }
.leading-relaxed { line-height: 1.7; }
.leading-loose { line-height: 1.8; }

/* ---- Typography Components ---- */
/* Body paragraph copy used in page intros (replaces the repeated
   color/text-base/leading-loose inline style across index, restaurants,
   architecture, families, moving, testimonials). */
.text-body-muted {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* Address line in restaurant cards (small faint text under the card). */
.card-address {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* "(optional)" hint inline next to a form field label. */
.field-optional {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  font-weight: 400;
}

/* Mini stat block label (used in Featured Property grid). */
.stat-mini-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

/* Mini stat block value (used in Featured Property grid). */
.stat-mini-value {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--color-text);
}

/* Hero h1 with fluid clamp sizing (used on moving and testimonials pages). */
.heading-hero {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

.font-display {
  font-family: var(--font-display);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-12);
}

/* ---- Layout Utilities ---- */
/* Vertical stack with consistent spacing (replaces inline display:flex; flex-direction:column; gap:var(--space-4);) */
.stack-4 {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Small set of margin helpers for one-off layout spacing (avoids inline margin styles) */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Horizontal row of actions/buttons that wraps on small screens */
.action-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.action-row--center {
  justify-content: center;
}

/* Page intro block above main page content (lead paragraph + heading) */
.intro-block {
  max-width: 680px;
  margin-bottom: var(--space-16);
}

/* Narrow prose container used on policy / legal pages */
.prose-narrow {
  max-width: 720px;
  margin-bottom: var(--space-12);
}

/* Container width modifier for FAQ-style narrow sections */
.container--narrow {
  max-width: 800px;
}

/* Centered narrow text block (used for closing CTAs) */
.center-narrow {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

/* Body paragraph inside .center-narrow CTA blocks */
.center-narrow .section-body,
.cta-body {
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* Center-aligned section-header keeps the body block visually centered */
.section-header.text-center .section-body {
  margin-inline: auto;
}

/* Stat-grid spacing modifier (used in market data sections) */
.stat-grid--mb {
  margin-bottom: var(--space-10);
}

/* Empty state for async-loaded lists */
.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-6);
}

/* Caption / source note under data-driven sections */
.section-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.section-note--muted {
  color: var(--color-text-muted);
  text-align: center;
}

/* CTA block after a FAQ list (centered button row) */
.section-cta-foot {
  margin-top: var(--space-10);
  text-align: center;
}

/* Sub-heading inside resource lists (uppercase label) */
.resource-list-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Resource list bottom-margin variants */
.resource-list--mb {
  margin-bottom: var(--space-10);
}

.resource-list--mb-sm {
  margin-bottom: var(--space-8);
}

/* Top-bordered block (used after contact details and policy back link) */
.bordered-top-block {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.bordered-top-block--lg {
  margin-top: var(--space-12);
}

/* Callout positioning modifiers */
.callout--mt {
  margin-top: var(--space-10);
}

.callout--mt-sm {
  margin-top: var(--space-8);
}

.callout--reset {
  margin: 0;
}

/* Section kicker reset (used inside flex header rows) */
.section-kicker--inline {
  margin: 0;
}

/* Arrow-bullet list (used on architecture "What buyers love" list) */
.arrow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.arrow-list li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.8;
  padding-left: var(--space-5);
  position: relative;
}

.arrow-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.arrow-list strong {
  color: var(--color-text);
}

/* Card link variant: removes underline on whole-card anchor wrappers */
.card--link {
  text-decoration: none;
}

/* Visually-hidden honeypot input for spam filtering */
.visually-hidden-input {
  display: none;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 64px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo span {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active {
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent);
  color: #111210 !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--weight-semi) !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark) !important;
  color: #fff !important;
}

/* Utility classes used inline on nav CTA (Tailwind-style names, vanilla CSS impl) */
.bg-\[\#b7bdb9f5\] {
  background: #b7bdb9f5 !important;
}
.bg-\[\#b7bdb9f5\]:hover {
  background: #9ea49ff5 !important;
  color: #111210 !important;
}
.font-extrabold {
  font-weight: 800 !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-5);
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
  .nav-mobile-overlay {
    display: none !important;
  }
}

.nav-mobile a {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--color-text);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand-name {
  font-weight: var(--weight-semi);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-1);
}

.footer-brand a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.footer-brand a:hover {
  color: var(--color-text);
}

.footer-dre {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  color: var(--color-text-faint);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-text-muted);
}

/* ---- Page Wrapper ---- */
.page-main {
  padding-top: 64px;
}

/* account for fixed nav */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 11, 9, 0.90) 0%,
      rgba(10, 11, 9, 0.50) 50%,
      rgba(10, 11, 9, 0.15) 100%);
}

.hero-content {
  position: relative;
  padding: var(--space-20) 0 var(--space-16);
  max-width: 720px;
}

.hero-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero-body {
  font-size: var(--text-lg);
  color: rgba(232, 229, 223, 0.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 11, 9, 0.92) 0%,
      rgba(10, 11, 9, 0.55) 55%,
      rgba(10, 11, 9, 0.20) 100%);
}

.page-hero-content {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
}

.page-hero-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.page-hero-body {
  font-size: var(--text-lg);
  color: rgba(232, 229, 223, 0.75);
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-7);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #111210;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

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

/* ---- Section Layout ---- */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

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

.section-surface {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.75;
}

.section-body.wide {
  max-width: 80ch;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-2);
}

.card-link::after {
  content: '→';
}

/* Restaurant Card extras */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.card-badge {
  font-size: var(--text-xs);
  padding: 2px var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

.card-price {
  color: var(--color-accent-warm);
  font-weight: var(--weight-medium);
}

/* ---- Quick Facts Strip ---- */
.quick-facts {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-10) 0;
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.fact-item {
  text-align: center;
}

.fact-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.fact-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.fact-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  color: var(--color-text);
}

.fact-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* ---- Callout / Tip Block ---- */
.callout {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-8);
}

.callout-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.callout p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-align: left;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

.form-required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(138, 173, 140, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9690' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-color: var(--color-surface);
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-select option {
  background: var(--color-surface-2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-top: var(--space-2);
}

/* ---- Event Cards ---- */
.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-5);
  transition: border-color var(--transition-normal);
}

.event-card:hover {
  border-color: var(--color-border-light);
}

.event-date-box {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-month {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.event-day {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.event-body {
  flex: 1;
}

.event-type {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.event-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.event-details {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.event-details span {
  margin-right: var(--space-4);
}

.event-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
}

.event-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.event-link:hover {
  color: var(--color-text);
}

/* ---- Tag Filters ---- */
.filter-tabs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.filter-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111;
}

/* ---- Market Snapshot ---- */
.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.market-table th {
  text-align: left;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-weight: var(--weight-semi);
}

.market-table td {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.market-table td:first-child {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.market-table tr:hover td {
  background: var(--color-surface);
}

/* ---- Stat Grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* Smaller variant for stat values that read as words ("Ask Sean") rather
   than numbers, used in the Featured Property Market Snapshot grid. */
.stat-value--sm {
  font-size: var(--text-lg);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.stat-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* ---- Contact Block ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.contact-value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

/* Larger variant for the headline phone number in the contact details list. */
.contact-value--lg {
  font-size: var(--text-xl);
}

.contact-value a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.contact-value a:hover {
  color: var(--color-text);
}

/* ---- Inline List (schools, parks) ---- */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.resource-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.resource-info {
  display: flex;
  flex-direction: column;
}

.resource-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.resource-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.resource-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  white-space: nowrap;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.resource-link:hover {
  color: var(--color-text);
}

/* ---- Two-column text layout ---- */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.lead-text {
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: var(--weight-light);
}

/* ---- Architecture style cards ---- */
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.style-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.style-card-body {
  padding: var(--space-6);
}

.style-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.style-card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- Privacy page text ---- */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose p,
.prose li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-6);
}

.prose a {
  color: var(--color-accent);
}

.prose a:hover {
  color: var(--color-text);
}

/* ---- Market Table Scroll Wrapper ---- */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Featured Property (Architecture page) ---- */
.featured-property-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.featured-property-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.featured-property-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.featured-property-grid {
  gap: var(--space-8);
}

.featured-property-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.market-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 768px) {
  .featured-property-card {
    padding: var(--space-6) var(--space-5);
  }
}

@media (max-width: 360px) {
  .featured-property-stats {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobile Menu Overlay ---- */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-16: 3rem;
    --space-20: 4rem;
    --space-24: 5rem;
    --space-32: 6rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    z-index: 100;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) var(--space-6);
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
  }

  .nav-mobile.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-mobile a {
    padding: var(--space-4) 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-mobile a:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-body {
    font-size: var(--text-base);
  }

  .page-hero {
    min-height: 40vh;
  }

  .page-hero-body {
    font-size: var(--text-base);
  }

  .section-body {
    font-size: var(--text-base);
  }

  .card-grid,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: var(--space-5);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .site-footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .quick-facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: var(--space-6) var(--space-5);
  }

  .stat-value {
    font-size: var(--text-3xl);
  }

  .two-col-text {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit-row .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
    font-size: var(--text-base);
  }

  .form-submit-row .form-privacy {
    text-align: center;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-5);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
    font-size: var(--text-base);
    min-height: 48px;
  }

  .event-card {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
  }

  .event-date-box {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
  }

  .event-month {
    font-size: var(--text-sm);
  }

  .event-day {
    font-size: var(--text-2xl);
  }

  .event-actions {
    flex-wrap: wrap;
  }

  .event-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .resource-item {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
  }

  .resource-link {
    align-self: flex-start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .lead-form-wrap {
    padding: var(--space-5);
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .divider {
    margin-block: var(--space-8);
  }

  .btn {
    min-height: 44px;
    padding: var(--space-3) var(--space-6);
  }

  .card-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .faq-question {
    padding: var(--space-5) 0;
    min-height: 48px;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
  }

  .market-table th,
  .market-table td {
    white-space: nowrap;
    padding: var(--space-3);
  }

  .callout {
    padding: var(--space-4) var(--space-5);
  }

  .lead-text {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .nav-inner {
    gap: var(--space-3);
  }

  .nav-logo {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .nav-logo span {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-content {
    padding: var(--space-16) 0 var(--space-10);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .page-hero {
    min-height: 35vh;
  }

  .page-hero-content {
    padding: var(--space-12) 0 var(--space-8);
  }

  .page-hero-title {
    font-size: var(--text-2xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .quick-facts-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: var(--text-2xl);
  }

  .event-date-box {
    padding: var(--space-2) var(--space-3);
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    padding: var(--space-4);
  }

  .fact-value {
    font-size: var(--text-lg);
  }

  .fact-note {
    display: none;
  }

  .card-body {
    padding: var(--space-4);
  }

  .card-title {
    font-size: var(--text-lg);
  }

  .style-card-body {
    padding: var(--space-5);
  }

  .footer-brand-name {
    font-size: var(--text-base);
  }

  .contact-grid {
    gap: var(--space-8);
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: var(--space-3);
  }

  .nav-logo {
    font-size: 0.72rem;
  }

  .nav-logo span {
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .page-hero-title {
    font-size: var(--text-xl);
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .quick-facts-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Market table ---- */
  .market-table {
    font-size: var(--text-xs);
  }

  .market-table th,
  .market-table td {
    padding: var(--space-2);
    white-space: normal;
  }

  .market-table th {
    letter-spacing: 0.04em;
  }

  /* Allow the label column (first cell) to wrap so very long row
     names don't force horizontal scroll on 320px screens. */
  .market-table td:first-child,
  .market-table th:first-child {
    word-break: break-word;
  }

  /* ---- Stat grid / cards ---- */
  .stat-grid {
    gap: var(--space-4);
  }

  .stat-card {
    padding: var(--space-4);
  }

  .stat-value {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-1);
  }

  .stat-label {
    font-size: var(--text-xs);
  }

  /* ---- Event cards ---- */
  .event-card {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .event-date-box {
    padding: var(--space-2) var(--space-3);
  }

  .event-day {
    font-size: var(--text-xl);
  }

  .event-title {
    font-size: var(--text-base);
  }

  .event-details {
    font-size: var(--text-xs);
  }

  .event-details span {
    margin-right: var(--space-3);
  }

  .event-actions {
    margin-top: var(--space-3);
    gap: var(--space-2);
  }

  /* ---- Featured property card ---- */
  .featured-property-card {
    padding: var(--space-5) var(--space-4);
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  background: var(--color-accent);
  color: #111210;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-3);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 90;
  width: 44px;
  height: 44px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background var(--transition-fast), color var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111210;
}

/* ---- Focus Visible ---- */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-links a:focus-visible,
.nav-mobile a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.card:focus-within {
  border-color: var(--color-border-light);
}

/* ---- Body Scroll Lock ---- */
body.menu-open {
  overflow: hidden;
}

/* ---- Prefers Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .back-to-top {
    transition: none;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: var(--space-5);
    right: var(--space-5);
  }
}
/* ===========================================================
   Curated Restaurants Cards (monthly scraper output)
   ===========================================================
   Layout: hero image on top, body underneath. Renders nicely
   in a 2-up grid on desktop and a single column on mobile.
   Falls back to a colored letter tile when no image is found.
*/

#curated-restaurants-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
  flex-direction: initial !important;
}

.curated-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.curated-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.curated-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(138, 173, 140, 0.18), rgba(138, 173, 140, 0.32));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curated-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.curated-card:hover .curated-card-media img {
  transform: scale(1.04);
}

.curated-card-media--fallback {
  background: linear-gradient(135deg, rgba(138, 173, 140, 0.25), rgba(138, 173, 140, 0.45));
}

.curated-card-media--fallback span {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 64px;
  font-weight: 600;
  color: rgba(92, 122, 94, 0.85);
  line-height: 1;
}

.curated-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  padding: var(--space-4, 16px) var(--space-5, 20px) var(--space-5, 20px);
  flex: 1;
}

.curated-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs, 12px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #6b7280);
  font-weight: 600;
}

.curated-card-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: var(--text-xl, 22px);
  line-height: 1.25;
  margin: 4px 0 2px;
  color: var(--color-text, #1c1c1c);
}

.curated-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-sm, 14px);
  color: var(--color-text-muted, #6b7280);
}

.curated-card-desc {
  margin: 6px 0 0;
  color: var(--color-text-muted, #4b5563);
  font-size: var(--text-sm, 14px);
  line-height: 1.55;
}

.curated-card-actions {
  margin-top: auto;
  padding-top: var(--space-3, 12px);
}

.curated-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.curated-pill--hood {
  background: rgba(138, 173, 140, 0.18);
  color: #5c7a5e;
}

.curated-pill--muted {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-muted, #6b7280);
  font-weight: 500;
}

.curated-pill--new {
  background: rgba(214, 148, 79, 0.18);
  color: #a8651e;
}

@media (max-width: 640px) {
  #curated-restaurants-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .curated-card-media {
    aspect-ratio: 16 / 9;
  }

  .curated-card-media--fallback span {
    font-size: 52px;
  }

  .curated-card-body {
    padding: var(--space-3, 12px) var(--space-4, 16px) var(--space-4, 16px);
  }

  .curated-card-title {
    font-size: var(--text-lg, 18px);
  }
}

@media (max-width: 360px) {
  /* ---- Curated restaurant cards (placed after the 640px curated
     block above so the source-order cascade applies these tighter
     values at the smallest phone widths). */
  .curated-card-body {
    padding: var(--space-3, 12px);
    gap: 6px;
  }

  .curated-card-meta {
    gap: 4px;
    font-size: 11px;
  }

  .curated-card-title {
    font-size: var(--text-base, 16px);
    line-height: 1.3;
  }

  .curated-card-details {
    gap: 8px;
    font-size: var(--text-xs, 12px);
  }

  .curated-card-desc {
    font-size: var(--text-xs, 12px);
    line-height: 1.5;
  }

  .curated-pill {
    padding: 2px 6px;
    font-size: 10px;
  }
}

/* ──── Rockridge Now (Blog) ──── */
.container--prose { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138,173,140,0.4);
  background: rgba(255,255,255,0.04);
}
.blog-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1c1a;
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aad8c;
}
.blog-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: #e8e5df;
  margin: 0;
}
.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: #b8b4ad;
  margin: 0;
  flex: 1;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #8aad8c;
  margin-top: 4px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b8966b;
  background: rgba(184,150,107,0.1);
  border: 1px solid rgba(184,150,107,0.25);
  border-radius: 999px;
}
.blog-tags--header { margin: 0 0 18px; }

.blog-loading,
.blog-empty {
  text-align: center;
  padding: 48px 20px;
  color: #9a9690;
  font-size: 15px;
}
.blog-empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: #e8e5df;
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-empty p { max-width: 520px; margin: 0 auto; line-height: 1.55; }

/* ──── Single blog post layout ──── */
.blog-article-header {
  padding: 52px 0 28px;
  background: linear-gradient(180deg, rgba(138,173,140,0.04) 0%, rgba(0,0,0,0) 100%);
}
.blog-breadcrumb {
  font-size: 12px;
  color: #9a9690;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.blog-breadcrumb a {
  color: #9a9690;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.blog-breadcrumb a:hover { color: #8aad8c; border-bottom-color: #8aad8c; }
.blog-breadcrumb span { margin: 0 8px; color: #5c5853; }

.blog-article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 600;
  color: #e8e5df;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.blog-article-meta {
  font-size: 14px;
  color: #9a9690;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}
.blog-meta-divider { margin: 0 10px; color: #5c5853; }
.blog-byline a {
  color: #b8b4ad;
  border-bottom: 1px solid rgba(184,180,173,0.3);
  text-decoration: none;
}
.blog-byline a:hover { color: #8aad8c; border-bottom-color: #8aad8c; }

.blog-article-hero {
  margin: 0 0 36px;
}
.blog-article-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.blog-article-body {
  font-size: 18px;
  line-height: 1.7;
  color: #d9d6d0;
}
.blog-article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  color: #e8e5df;
  margin: 44px 0 16px;
  font-weight: 600;
}
.blog-article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  color: #e8e5df;
  margin: 32px 0 12px;
  font-weight: 600;
}
.blog-article-body blockquote {
  border-left: 3px solid #8aad8c;
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: #c5c1b9;
  font-style: italic;
}
.blog-article-body img {
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 6px;
}
.blog-article-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 36px 0;
}

.blog-cta {
  margin: 56px 0 16px;
  padding: 30px 32px;
  background: rgba(138,173,140,0.08);
  border: 1px solid rgba(138,173,140,0.25);
  border-radius: 10px;
}
.blog-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #e8e5df;
  margin: 0 0 12px;
}
.blog-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: #c5c1b9;
  margin: 0 0 14px;
}
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}
.blog-cta-link {
  font-size: 14px;
  font-weight: 600;
  color: #8aad8c;
  text-decoration: none;
}
.blog-cta-link:hover { text-decoration: underline; }

.blog-sources {
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.blog-sources h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9690;
  margin: 0 0 14px;
}
.blog-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sources li {
  margin-bottom: 8px;
  font-size: 13px;
  word-break: break-all;
}
.blog-sources a {
  color: #b8b4ad;
  text-decoration: none;
  border-bottom: 1px solid rgba(184,180,173,0.2);
}
.blog-sources a:hover { color: #8aad8c; border-bottom-color: #8aad8c; }

.blog-back {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.blog-back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #9a9690;
  text-decoration: none;
}
.blog-back-link:hover { color: #8aad8c; }

.blog-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 640px) {
  .blog-article-header { padding: 32px 0 20px; }
  .blog-article-body { font-size: 16.5px; }
  .blog-cta { padding: 24px 22px; }
}
