/*
Theme Name: Hillmarc Insights
Description: Blog theme for Hillmarc Consulting, matching the main site's dark navy design system.
Author: Hillmarc Consulting
Version: 1.0
Text Domain: hillmarc-insights
*/

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

:root {
  --navy-deep:   #050c1a;
  --navy:        #081428;
  --navy-mid:    #0c1b35;
  --navy-card:   #0f2044;
  --navy-border: rgba(255,255,255,0.08);
  --navy-hover:  rgba(255,255,255,0.04);
  --white:       #ffffff;
  --white-80:    rgba(255,255,255,0.80);
  --white-50:    rgba(255,255,255,0.50);
  --white-20:    rgba(255,255,255,0.20);
  --white-08:    rgba(255,255,255,0.08);
  --white-04:    rgba(255,255,255,0.04);
  --accent:      #4b8ef0;
  --accent-dim:  rgba(75,142,240,0.15);
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Syne', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 3px; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 64px;
  background: rgba(5,12,26,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--navy-border);
}
.logo-link { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-img { height: 40px; width: auto; object-fit: contain; }
.logo {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
}
.nav-center { display: flex; gap: 40px; list-style: none; }
.nav-center a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--white-50);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-center a:hover, .nav-center .current-menu-item a { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.btn-nav-solid {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy-deep);
  background: var(--white);
  border: none;
  border-radius: 7px;
  padding: 9px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav-solid:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }

/* ── PAGE HEADER (blog archive / single) ── */
.page-header {
  padding: 168px 56px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(75,142,240,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white-04);
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
}
.page-title em { font-style: italic; color: var(--white-50); }
.page-sub {
  font-size: 17px;
  color: var(--white-50);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
  position: relative; z-index: 1;
}

/* ── POST GRID (archive/index) ── */
.section { padding: 40px 56px 120px; max-width: 1240px; margin: 0 auto; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  overflow: hidden;
}
.post-card {
  background: var(--navy-mid);
  padding: 0 0 32px;
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}
.post-card:hover { background: var(--navy-card); }
.post-card-media { display: block; }
.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--navy-deep);
}
.post-card-body {
  padding: 28px 36px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.post-card-source {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 500;
}
.post-card-title-link { text-decoration: none; display: block; }
.post-card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.28;
  color: var(--white);
  margin-bottom: 16px;
  flex-grow: 1;
  transition: color 0.2s;
}
.post-card-title-link:hover .post-card-title { color: var(--accent); }
.post-card-excerpt {
  font-size: 14.5px;
  color: var(--white-50);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 22px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.post-card-meta {
  font-size: 12.5px;
  color: var(--white-20);
  display: flex; align-items: center; gap: 8px;
}
.post-card-actions { display: flex; align-items: center; gap: 14px; }
.post-card-share {
  display: flex; align-items: center; justify-content: center;
  color: var(--white-20);
  transition: color 0.2s;
}
.post-card-share:hover { color: var(--accent); }
.post-card-link {
  font-size: 13px; font-weight: 500; color: var(--accent);
  text-decoration: none;
}

/* ── TOPIC FILTER TABS + SEARCH ── */
.insights-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 40px;
}
.insights-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tab {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--white-50);
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { color: var(--white); border-color: var(--white-20); }
.filter-tab.is-active {
  color: var(--navy-deep);
  background: var(--white);
  border-color: var(--white);
}
.insights-search {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--white);
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 9px 18px;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s;
}
.insights-search::placeholder { color: var(--white-20); }
.insights-search:focus { border-color: var(--accent); }

/* ── LOAD MORE ── */
.load-more-btn {
  display: block;
  margin: 40px auto 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── SOURCES NOTE ── */
.sources-note {
  font-size: 13.5px;
  color: var(--white-50);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── NEWSLETTER SIGNUP ── */
.newsletter-box {
  margin-top: 72px;
  padding: 44px 48px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.newsletter-copy { max-width: 440px; }
.newsletter-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}
.newsletter-sub { font-size: 14px; color: var(--white-50); line-height: 1.55; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-input {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--white);
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 240px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: var(--white-20); }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-submit {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-deep);
  background: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.newsletter-submit:hover { opacity: 0.88; }
.newsletter-message {
  font-size: 13px;
  color: var(--accent);
  width: 100%;
  margin-top: 4px;
}

/* ── TEAM EMPTY STATE ── */
.team-empty-state { margin-top: 64px; }

/* ── SINGLE POST ── */
.single-post-wrap { padding: 168px 56px 100px; max-width: 760px; margin: 0 auto; }
.single-eyebrow { margin-bottom: 22px; }
.single-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin-bottom: 24px;
}
.single-meta {
  font-size: 13.5px;
  color: var(--white-50);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-border);
}
.single-content { font-size: 17px; font-weight: 300; color: var(--white-80); line-height: 1.85; }
.single-content p { margin-bottom: 26px; }
.single-content h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 48px 0 20px; color: var(--white); }
.single-content h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 36px 0 16px; color: var(--white); }
.single-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote { border-left: 2px solid var(--accent); padding-left: 24px; font-style: italic; color: var(--white-50); margin: 32px 0; }
.single-content ul, .single-content ol { margin: 0 0 26px 22px; }
.single-source-note {
  margin-top: 56px; padding: 24px 28px;
  background: var(--navy-mid); border: 1px solid var(--navy-border);
  border-radius: 12px; font-size: 14px; color: var(--white-50);
}
.single-source-note a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ── FOOTER ── */
.site-footer {
  padding: 48px 56px; text-align: center;
  border-top: 1px solid var(--navy-border);
  font-size: 13px; color: var(--white-20);
}
.site-footer a { color: var(--white-50); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination a, .pagination span {
  padding: 10px 18px; border: 1px solid var(--navy-border); border-radius: 8px;
  font-size: 13.5px; color: var(--white-50); text-decoration: none;
}
.pagination .current { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.pagination a:hover { border-color: var(--white-50); color: var(--white); }

@media (max-width: 800px) {
  .site-nav { padding: 0 24px; }
  .nav-center { display: none; }
  .section { padding: 32px 24px 80px; }
  .single-post-wrap { padding: 140px 24px 80px; }
  .page-header { padding: 140px 24px 60px; }
}
