/* Queens NYC Real Estate Guide — Custom CSS
   Framework: Bulma CSS (via CDN)
   Design: Clean editorial, warm navy/amber palette, card-based layout
*/

:root {
  --primary: #1b3d6f;
  --primary-light: #2b5ea7;
  --primary-dark: #122a4e;
  --accent: #c97d2b;
  --accent-light: #e8a44a;
  --bg: #ffffff;
  --bg-alt: #f7f5f1;
  --bg-dark: #1b3d6f;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --border: #ddd8ce;
  --shadow: 0 2px 12px rgba(27,61,111,0.10);
  --shadow-hover: 0 6px 24px rgba(27,61,111,0.18);
  --radius: 8px;
  --radius-lg: 16px;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; color: var(--primary-dark); }
h2 { font-size: 1.55rem; color: var(--primary); border-bottom: 2px solid var(--accent-light); padding-bottom: 0.3em; margin-top: 2em; }
h3 { font-size: 1.25rem; color: var(--primary-light); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.2em; }
ul, ol { margin-bottom: 1.2em; padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

strong { color: var(--primary-dark); }
em { font-style: italic; }

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

/* ─── Navbar ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 1.4rem;
}

/* ─── Hero ─── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  max-width: 720px;
  margin-top: 0;
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.hero-cta:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); }

/* ─── Page Header (non-hero pages) ─── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Main Content ─── */
.main-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-body {
  max-width: 820px;
  margin: 0 auto;
}

.content-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

/* ─── Two-column layout ─── */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.card-title a { text-decoration: none; color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-link:hover { color: var(--primary); }

/* ─── Feature Sections ─── */
.feature-section {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
}

.feature-section h2 { margin-top: 0; }

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ─── Sidebar ─── */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 0.5rem;
}

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

.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a {
  font-size: 0.9rem;
  color: var(--primary-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-links a::before { content: '→'; color: var(--accent); font-size: 0.75rem; }
.sidebar-links a:hover { color: var(--accent); }

/* ─── Neighborhood Grid ─── */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.neighborhood-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}
.neighborhood-card:hover { box-shadow: var(--shadow); }

.neighborhood-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.neighborhood-card h3 a { text-decoration: none; color: var(--primary); }
.neighborhood-card h3 a:hover { color: var(--accent); }
.neighborhood-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ─── Blog Articles ─── */
.article-list { margin: 2rem 0; }
.article-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.article-item:last-child { border-bottom: none; }
.article-item h3 { font-size: 1.15rem; margin-top: 0; margin-bottom: 0.4rem; }
.article-item p { margin-bottom: 0; color: var(--text-muted); }

/* ─── Key Info Box ─── */
.info-box {
  background: #eef3fb;
  border: 1px solid #b8cbe8;
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box h4 { color: var(--primary); margin-top: 0; font-size: 0.95rem; }
.info-box p, .info-box ul { margin-bottom: 0; font-size: 0.9rem; }

/* ─── Footer ─── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--accent-light); }

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  max-width: 560px;
}

/* ─── Hero image ─── */
.hero-image-full {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

/* ─── Utility classes for page-specific layouts ─── */
.grid-two-even { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.img-section { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; }
.h2-accent-border { border-color: var(--accent-light); }
.center-block { text-align: center; padding: 5rem 1.5rem; }
.center-block-inner { max-width: 560px; margin: 0 auto; }
.icon-xl { font-size: 5rem; margin-bottom: 1rem; opacity: .5; }
.text-error-title { color: var(--primary-dark); }
.text-lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.text-left { text-align: left; }
.mt-2 { margin-top: 2rem; }
.404-back-link { display: inline-flex; }

/* ─── Quick-facts sidebar list ─── */
.sidebar-quickfacts { list-style: none; padding: 0; margin: 0; }
.sidebar-quickfacts li { margin-bottom: .5rem; font-size: .9rem; }

/* ─── Rounded inline image ─── */
.img-rounded { border-radius: 12px; margin: 1.5rem 0; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--primary-dark); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: 0; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 1.8rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .neighborhood-grid { grid-template-columns: 1fr; }
}
