/*
Theme Name: HDM News
Theme URI: https://news.homedirectmarketing.com
Author: Home Direct Marketing
Description: Clean, minimal news/updates theme matching the Home Direct Marketing brand.
Version: 1.0.0
License: Proprietary
Text Domain: hdm-news
*/

:root {
  --hdm-primary: #2F3A5F;
  --hdm-accent:  #57C3A6;
  --hdm-text:    #2a2f3a;
  --hdm-muted:   #7C818B;
  --hdm-border:  #e6e8ec;
  --hdm-bg:      #ffffff;
  --hdm-bg-soft: #f7f8fa;
  --hdm-radius:  6px;
  --hdm-content-width: 720px;
  --hdm-wide-width: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hdm-bg);
  color: var(--hdm-text);
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--hdm-primary); text-decoration: none; }
a:hover { color: var(--hdm-accent); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hdm-primary);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.4em 0 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

.hdm-container {
  max-width: var(--hdm-wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hdm-content {
  max-width: var(--hdm-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.hdm-header {
  border-bottom: 1px solid var(--hdm-border);
  background: #fff;
}
.hdm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  flex-wrap: wrap;
}
.hdm-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.hdm-header__brand img { height: 36px; width: auto; display: block; }
.hdm-header__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hdm-primary);
  letter-spacing: -0.01em;
}
.hdm-header__title small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--hdm-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.hdm-nav { display: flex; gap: 24px; align-items: center; }
.hdm-nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--hdm-primary);
}
.hdm-nav a:hover { color: var(--hdm-accent); }
.hdm-nav__btn {
  background: var(--hdm-accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--hdm-radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.hdm-nav__btn:hover {
  background: #46a98d;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Hero (homepage) */
.hdm-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--hdm-border);
  text-align: center;
}
.hdm-hero h1 {
  margin: 0 0 12px;
  font-size: 2.4rem;
  letter-spacing: -0.015em;
}
.hdm-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--hdm-muted);
  font-size: 1.05rem;
}

/* Post list */
.hdm-feed { padding: 48px 0 80px; }
.hdm-post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--hdm-border);
}
.hdm-post-card:last-child { border-bottom: none; }
.hdm-post-card__meta {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hdm-muted);
  margin-bottom: 8px;
}
.hdm-post-card__title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.3;
}
.hdm-post-card__title a { color: var(--hdm-primary); }
.hdm-post-card__title a:hover { color: var(--hdm-accent); }
.hdm-post-card__excerpt {
  color: var(--hdm-text);
  margin: 0 0 12px;
}
.hdm-post-card__more {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hdm-accent);
  letter-spacing: 0.02em;
}
.hdm-post-card__more::after { content: " →"; }

/* Single post */
.hdm-single { padding: 56px 0 80px; }
.hdm-single__back {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hdm-muted);
  margin-bottom: 18px;
}
.hdm-single__back:hover { color: var(--hdm-accent); }
.hdm-single__meta {
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hdm-muted);
  margin-bottom: 8px;
}
.hdm-single__title {
  margin: 0 0 20px;
  font-size: 2.4rem;
  letter-spacing: -0.015em;
}
.hdm-single__content { font-size: 1.05rem; }
.hdm-single__content p { margin: 0 0 1.2em; }
.hdm-single__content blockquote {
  border-left: 3px solid var(--hdm-accent);
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.1em;
  color: var(--hdm-muted);
  font-style: italic;
}
.hdm-single__content code {
  background: var(--hdm-bg-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}
.hdm-single__content pre {
  background: var(--hdm-bg-soft);
  border: 1px solid var(--hdm-border);
  padding: 1em;
  overflow: auto;
  border-radius: var(--hdm-radius);
}
.hdm-single__content img { border-radius: var(--hdm-radius); margin: 1em 0; }
.hdm-single__content h2 { margin-top: 1.8em; }

/* Pagination */
.hdm-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hdm-border);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}
.hdm-pagination a { color: var(--hdm-primary); }
.hdm-pagination a:hover { color: var(--hdm-accent); }
.hdm-pagination__placeholder { color: var(--hdm-border); }

/* Footer */
.hdm-footer {
  border-top: 1px solid var(--hdm-border);
  padding: 32px 0;
  margin-top: auto;
  background: var(--hdm-bg-soft);
}
.hdm-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--hdm-muted);
}
.hdm-footer a { color: var(--hdm-muted); }
.hdm-footer a:hover { color: var(--hdm-accent); }

/* Layout sticky-footer */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* 404 / search */
.hdm-notice { padding: 64px 0; text-align: center; }
.hdm-notice h1 { margin-bottom: 12px; }
.hdm-notice p { color: var(--hdm-muted); }

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hdm-hero { padding: 40px 0 24px; }
  .hdm-hero h1, .hdm-single__title { font-size: 1.85rem; }
  .hdm-post-card__title { font-size: 1.3rem; }
  .hdm-header__inner { padding: 14px 0; }
  .hdm-nav { gap: 16px; }
}
