/*
Theme Name: DodgeGo 2026
Theme URI: https://dodgego.com/
Author: DodgeGo Editorial
Description: Clean editorial and buyer-guide theme for Dodge, Ram, Charger, Challenger, Durango and performance parts content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: dodgego-2026
*/

:root {
  --dg-bg: #0b0c0f;
  --dg-panel: #14171d;
  --dg-panel-soft: #1d222b;
  --dg-text: #f4f5f7;
  --dg-muted: #aeb6c4;
  --dg-red: #d71920;
  --dg-red-dark: #981117;
  --dg-silver: #d9dee7;
  --dg-line: rgba(255, 255, 255, 0.12);
  --dg-max: 1180px;
  --dg-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--dg-bg);
  color: var(--dg-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: #ff4048;
  text-decoration: none;
}

a:hover {
  color: #ff6b71;
}

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

.site-header {
  border-bottom: 1px solid var(--dg-line);
  background: #050506;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner,
.site-main,
.footer-inner {
  width: min(var(--dg-max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--dg-text);
  text-transform: uppercase;
}

.brand-image {
  display: block;
  width: clamp(280px, 32vw, 390px);
  height: auto;
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transform: skew(-12deg);
  letter-spacing: 0.04em;
  line-height: 0.92;
  white-space: nowrap;
}

.brand-dodge,
.brand-go {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
}

.brand-dodge {
  color: #f4f5f7;
}

.brand-go {
  color: var(--dg-red);
}

.brand-slashes {
  color: var(--dg-red);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.08em;
}

.brand-subtitle {
  display: grid;
  color: var(--dg-muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.15;
  max-width: 190px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-nav a {
  color: var(--dg-silver);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.72), rgba(5, 5, 6, 0.94)),
    radial-gradient(circle at 78% 22%, rgba(215, 25, 32, 0.28), transparent 38%),
    linear-gradient(135deg, #0a0b0d, #161a21);
  border-bottom: 1px solid var(--dg-line);
}

.hero-inner {
  width: min(var(--dg-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: #ff5960;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--dg-silver);
  font-size: 19px;
}

.hero-panel {
  border: 1px solid var(--dg-line);
  background: rgba(20, 23, 29, 0.78);
  border-radius: var(--dg-radius);
  padding: 20px;
}

.hero-panel h2 {
  margin: 0 0 12px;
  color: var(--dg-text);
  font-size: 18px;
  text-transform: uppercase;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-panel a {
  display: block;
  color: var(--dg-silver);
  border-left: 3px solid var(--dg-red);
  padding-left: 10px;
  font-weight: 700;
}

.site-main {
  padding: 38px 0 58px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.post-card,
.widget,
.article-shell {
  background: var(--dg-panel);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius);
}

.post-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-bottom: 22px;
}

.post-card-media {
  min-height: 190px;
  background: var(--dg-panel-soft);
  display: block;
  position: relative;
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.38), transparent 42%),
    linear-gradient(145deg, #151923, #08090b);
  color: rgba(255, 255, 255, 0.72);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card-body {
  padding: 22px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.15;
}

.post-card h2 a,
.article-title a {
  color: var(--dg-text);
}

.post-meta {
  color: var(--dg-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card p {
  color: var(--dg-silver);
  margin: 12px 0 0;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 20px;
}

.widget h2,
.widget h3 {
  margin-top: 0;
  font-size: 18px;
  text-transform: uppercase;
}

.widget ul {
  margin: 0;
  padding-left: 20px;
}

.article-shell {
  padding: min(6vw, 54px);
  min-width: 0;
}

.article-title {
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3 {
  margin-top: 38px;
  line-height: 1.2;
  color: #fff;
}

.article-content h2 {
  font-size: 31px;
  border-left: 4px solid var(--dg-red);
  padding-left: 13px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content {
  min-width: 0;
  overflow-wrap: break-word;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: var(--dg-silver);
}

.article-content a {
  overflow-wrap: anywhere;
}

.article-content figure {
  max-width: 100%;
  margin: 24px 0;
}

.article-content figcaption,
.wp-caption-text {
  color: var(--dg-muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 8px;
}

.article-content .wp-block-image {
  text-align: center;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #ffffff;
  color: #17202c;
  table-layout: auto;
  min-width: 980px;
}

.article-content .wp-block-table,
.article-content .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.article-content .wp-block-table table {
  display: table;
  margin: 0;
  border: 0;
}

.article-content > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td {
  border: 1px solid #d9dee7;
  color: #17202c;
  padding: 14px;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  min-width: 130px;
}

.article-content td:first-child,
.article-content th:first-child {
  min-width: 260px;
}

.article-content th {
  background: #a90f17;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-content td p,
.article-content td li,
.article-content td strong,
.article-content td em {
  color: #17202c;
}

.article-content td a {
  color: #a90f17;
  font-weight: 800;
}

.article-content tbody tr:nth-child(even) td {
  background: #f7f8fb;
}

.article-content tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.article-content blockquote {
  border-left: 4px solid var(--dg-red);
  margin: 24px 0;
  padding: 12px 18px;
  background: #101319;
  color: var(--dg-silver);
}

.article-content .wp-block-image img,
.article-content figure img {
  border-radius: var(--dg-radius);
  border: 1px solid var(--dg-line);
  max-height: none;
  object-fit: contain;
}

.article-content td img,
.article-content th img {
  width: auto;
  max-width: 230px;
  max-height: 230px;
  object-fit: contain;
  display: block;
  margin: 10px auto;
}

.article-content .wp-block-button__link,
.article-content a[href*="amazon.com"] img,
.article-content a[href*="amzn.to"] img {
  display: inline-block;
}

.article-content .wp-block-button__link,
.article-content a.button,
.article-content .button {
  background: var(--dg-red);
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  text-transform: uppercase;
}

.article-content .wp-block-group,
.article-content .wp-block-media-text,
.article-content [class*="rehub"],
.article-content [class*="rh-"],
.article-content [class*="wpsm"],
.article-content [class*="egg"] {
  max-width: 100%;
}

.article-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.article-content pre,
.article-content code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--dg-line);
  background: #050506;
  color: var(--dg-muted);
}

.footer-inner {
  padding: 28px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-inner,
  .content-grid,
  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card-media {
    min-height: 230px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .brand-image {
    width: min(320px, 84vw);
  }

  .brand-subtitle {
    max-width: none;
  }

  .article-shell {
    padding: 24px 16px;
  }

  .article-content table {
    min-width: 960px;
    font-size: 15px;
  }

  .article-content td img,
  .article-content th img {
    max-width: 170px;
  }
}
