/* =============================================
   TEXAS PARKING MANAGEMENT ASSOCIATION (TPMA)
   Design: Reserved editorial, trade-publication
   Palette: Slate navy, warm parchment, Texas red
   Texas landscape imagery as texture/identity
============================================= */

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

:root {
  --navy:       #1C2B3A;
  --navy-light: #253547;
  --red:        #B5291C;
  --gold:       #C8922A;
  --parchment:  #F5F1EA;
  --cream:      #FDFCF9;
  --text:       #1A1A1A;
  --muted:      #6B7280;
  --border:     #DDD8CE;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--font-sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- UTILITY ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---- TOP BAR ---- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.65); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; }

/* ---- HEADER ---- */
header {
  background: var(--navy);
  padding: 0;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--red) 33.3%, #fff 33.3% 66.6%, var(--navy-light) 66.6%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 22px 36px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo-block { display: flex; flex-direction: column; gap: 2px; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.logo-name span { color: var(--gold); }
.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tx-flag-badge { display: flex; align-items: center; gap: 10px; }

/* ---- NAV ---- */
nav {
  background: var(--navy-light);
  border-bottom: 2px solid var(--red);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-inner a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 12px 18px;
  display: block;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-inner a:hover, .nav-inner a.active { color: #fff; border-bottom-color: var(--gold); }
.nav-inner a.nav-join {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  border-radius: 2px;
  padding: 8px 16px;
  margin-bottom: 0;
  border-bottom: none;
  font-size: 0.75rem;
}
.nav-inner a.nav-join:hover { background: #9b2117; border-bottom-color: transparent; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663472539814/GxoDAExZd2kvfcYKk9SXrS/east-texas-pines_9f663c9e.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.28;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  height: 100%;
}
.hero-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-dek {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.hero-meta .dot { color: var(--red); }
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.hero-sidebar-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.hero-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.hero-sidebar-item:hover .hsi-title { color: var(--gold); }
.hsi-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
}
.hsi-cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}
.hsi-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.35;
  transition: color 0.15s;
}

/* ---- MAIN CONTENT ---- */
.main-section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
}
.section-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.section-more { font-size: 0.75rem; font-weight: 600; color: var(--red); letter-spacing: 0.04em; }
.section-more:hover { text-decoration: underline; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card { cursor: pointer; }
.article-card:hover .ac-title { color: var(--red); }
.ac-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.ac-img-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.ac-cat { margin-bottom: 6px; }
.ac-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.ac-dek { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.ac-meta { font-size: 0.72rem; color: var(--muted); display: flex; gap: 8px; }
.ac-meta .dot { color: var(--border); }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.widget-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.market-list { list-style: none; }
.market-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.market-list li:last-child { border-bottom: none; }
.market-name { font-weight: 500; color: var(--navy); }
.market-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--parchment);
  color: var(--muted);
}
.market-tag.hot { background: #FEF3C7; color: #92400E; }
.market-tag.watch { background: #DBEAFE; color: #1E40AF; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--navy);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.15s;
}
.pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Q&A SECTION ---- */
.qa-section { background: var(--parchment); padding: 48px 0; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qa-item {
  display: block;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.qa-item:nth-child(even) { border-right: none; }
.qa-item:hover .qa-q { color: var(--red); }
.qa-q {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color 0.15s;
}
.qa-preview { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.qa-arrow { font-size: 0.7rem; color: var(--red); margin-top: 6px; font-weight: 600; }

/* ---- NEWSLETTER BAND ---- */
.newsletter-band {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 52px 0;
}
.newsletter-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663472539814/GxoDAExZd2kvfcYKk9SXrS/mesquite-tree_2233c0f9.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.newsletter-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.nl-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.nl-headline {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.nl-sub { font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; line-height: 1.6; }

.nl-two-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  text-align: left;
}
.nl-track {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 20px;
}
.nl-track-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.nl-form { display: flex; gap: 0; }
.nl-form-full { width: 100%; max-width: 640px; margin: 0 auto; }
.nl-form-row { display: flex; gap: 0; width: 100%; }
.nl-input {
  flex: 1;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  border-radius: 2px 0 0 2px;
}
.nl-input::placeholder { color: rgba(255,255,255,0.35); }
.nl-input:focus { border-color: var(--gold); }
.nl-btn {
  padding: 11px 18px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.15s;
  white-space: nowrap;
}
.nl-btn:hover { background: #9b2117; }
.nl-btn-join {
  display: block;
  padding: 11px 18px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  text-align: center;
  transition: background 0.15s;
}
.nl-btn-join:hover { background: #b07d20; }
.nl-track-desc { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 10px; }
.nl-fine { font-size: 0.7rem; color: rgba(255,255,255,0.3); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 24px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663472539814/GxoDAExZd2kvfcYKk9SXrS/piney-woods_b2a97594.jpeg');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.07;
}
.footer-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-logo { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-tx-flag { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-flag-icon { width: 28px; height: 18px; border-radius: 1px; overflow: hidden; position: relative; flex-shrink: 0; }
.ffi-left {
  position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
}
.ffi-left::after { content: '★'; color: #fff; font-size: 6px; }
.ffi-right { position: absolute; left: 9px; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; }
.ffi-rt { flex: 1; background: var(--red); }
.ffi-rb { flex: 1; background: #fff; }
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ---- ARTICLE PAGE ---- */
.article-page { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.article-header { margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.article-category { margin-bottom: 12px; }
.article-headline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-dek { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.article-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 12px; }
.article-body { font-size: 1rem; line-height: 1.8; color: var(--text); }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 8px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 12px 20px;
  background: var(--parchment);
  margin: 24px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.article-body th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--parchment); }
.answer-box {
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.answer-box .answer-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.answer-box p { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.88); margin: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .qa-item { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nl-two-track { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.8rem; }
  .nl-form { flex-direction: column; }
  .nl-input, .nl-btn { border-radius: 2px; }
  .footer-top { grid-template-columns: 1fr; }
  .logo-name { font-size: 1.3rem; }
}
