/* Buy Collingwood Real Estate - Custom Styles */
:root {
  --spruce: #2d6a4f;
  --spruce-dark: #1b4332;
  --spruce-light: #40916c;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --white: #ffffff;
  --border: #e2e8f0;
}

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

/* Override Milligram's 62.5% html reset */
html { font-size: 100% !important; }

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-700);
  line-height: 1.75;
  font-size: 1rem;
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif !important;
  color: var(--slate-900);
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: -0.02em !important;
}
h1 { font-size: 2.2rem !important; margin-bottom: 0.75rem !important; }
h2 { font-size: 1.55rem !important; margin-top: 2rem !important; margin-bottom: 0.75rem !important; }
h3 { font-size: 1.2rem !important; margin-top: 1.5rem !important; margin-bottom: 0.5rem !important; }
h4 { font-size: 1.05rem !important; }
h5 { font-size: 0.95rem !important; }
h6 { font-size: 0.85rem !important; }

/* Override Milligram's paragraph margin */
p { margin-bottom: 1.25rem !important; }

a { color: var(--spruce); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--spruce-dark); }

/* Override Milligram list/link/button defaults */
ul, ol { list-style: disc outside !important; padding-left: 1.5rem !important; }
ul ul, ol ol { font-size: inherit !important; }
nav ul, .nav-links, .sidebar-box ul, .site-footer ul { list-style: none !important; padding-left: 0 !important; }
.button, button, input[type='submit'] { height: auto !important; line-height: 1.5 !important; font-size: 0.9rem !important; padding: 0.6rem 1.3rem !important; text-transform: none !important; letter-spacing: normal !important; font-weight: 600 !important; }

/* Override Milligram container */
.container { max-width: 1080px !important; margin: 0 auto; padding: 0 1.5rem !important; width: 100% !important; }

/* Navigation */
.site-nav {
  background: var(--slate-900);
  border-bottom: 3px solid var(--spruce);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-nav .logo {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.site-nav .logo em {
  font-style: normal;
  color: var(--spruce-light);
}
.site-nav .nav-links {
  display: flex;
  gap: 0;
}
.site-nav .nav-links a {
  color: rgba(255,255,255,0.7);
  padding: 0.85rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav .nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links { display: none; flex-direction: column; width: 100%; padding-bottom: 0.5rem; }
  .site-nav .nav-links.open { display: flex; }
  .site-nav .container { flex-wrap: wrap; }
  .site-nav .nav-links a { padding: 0.5rem 0; }
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--slate-400);
  padding: 0.75rem 0 0;
}
.breadcrumbs a { color: var(--slate-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--spruce); }
.breadcrumbs span { margin: 0 0.3rem; }

/* Hero */
.hero {
  background: var(--stone-50);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.75rem; }
.hero .lead {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 1.5rem;
}
.hero .hero-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-height: 340px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--spruce); color: #fff; }
.btn-primary:hover { background: var(--spruce-dark); color: #fff; text-decoration: none; }
.btn-outline { border: 2px solid var(--spruce); color: var(--spruce); background: transparent; }
.btn-outline:hover { background: var(--spruce); color: #fff; text-decoration: none; }

/* Sections */
.section { padding: 3rem 0; }
.section-bordered { border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--spruce);
  margin-bottom: 0.3rem;
}
.section-desc {
  color: var(--slate-500);
  max-width: 580px;
  margin-bottom: 1.5rem;
}

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: var(--slate-300); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 1.15rem; }
.card-body h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.card-body h3 a { color: var(--slate-900); text-decoration: none; }
.card-body h3 a:hover { color: var(--spruce); }
.card-body p { font-size: 0.88rem; color: var(--slate-500); line-height: 1.55; margin: 0; }
.card-body .card-meta {
  font-size: 0.72rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Town explore cards */
.town-card {
  background: var(--stone-50);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.town-card h4 { font-size: 1rem; margin: 0; }
.town-card p { font-size: 0.88rem; color: var(--slate-500); margin: 0; line-height: 1.5; }
.town-card .btn { align-self: flex-start; margin-top: 0.5rem; font-size: 0.8rem; padding: 0.4rem 1rem; }

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }

/* Article content */
.article-content h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.article-meta {
  font-size: 0.85rem;
  color: var(--slate-400);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content img { width: 100%; border-radius: 6px; margin: 1.5rem 0; }
.article-content .caption { font-size: 0.8rem; color: var(--slate-400); margin-top: -1rem; margin-bottom: 1.5rem; font-style: italic; }
.article-content a { text-decoration: underline; text-decoration-color: var(--slate-300); text-underline-offset: 2px; }
.article-content a:hover { text-decoration-color: var(--spruce); }
.article-content blockquote {
  border-left: 3px solid var(--spruce);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--stone-50);
  font-style: italic;
  color: var(--slate-600);
  border-radius: 0 4px 4px 0;
}

/* FAQ */
.faq-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { font-size: 1rem; margin-top: 0; margin-bottom: 0.3rem; }
.faq-item p { color: var(--slate-600); }

/* Sidebar */
.sidebar-box {
  background: var(--stone-50);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-900);
  margin-bottom: 0.6rem;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li a { color: var(--slate-600); text-decoration: none; }
.sidebar-box li a:hover { color: var(--spruce); }

/* Related */
.related-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* CTA box */
.cta-box {
  background: var(--stone-50);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: 0.2rem 0; font-size: 0.88rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-desc { font-size: 0.88rem; line-height: 1.6; max-width: 320px; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* Category banner */
.cat-banner { width: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }
