/* =====================================================================
   include/style.css
   Site-wide stylesheet for A Truckers Story (atruckersstory.com)
   Linked on every page via:
     <link rel="stylesheet" href="/include/style.css">
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

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

a {
  color: #0b5394;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* ---- Sticky site navigation -------------------------------------------
   Moves with the user as they scroll, per template spec. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e2e2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-nav a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #0b5394;
}

/* ---- Page header block (image / title / description / ad) ------------ */
.page-header {
  text-align: center;
  padding: 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-header img {
  margin: 0 auto 1rem;
}

.page-header h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.page-header .page-subheading {
  font-size: 1.25rem;
  color: #333;
  margin: 0 0 0.5rem;
}

.listing-empty {
  color: #777;
  text-align: center;
}

.page-header .page-description {
  font-size: 1.1rem;
  color: #444;
}

/* ---- Advertisement slots ----------------------------------------------
   head-advertisement, body-advertisement-1..5, footer-advertisement */
.ad-container,
.head-advertisement,
.body-advertisement,
.footer-advertisement {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 728px;
  min-height: 90px;
}

/* ---- Page body / content blocks ---------------------------------------- */
.page-content {
  width: 95%;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.page-content h2,
.page-content h3 {
  line-height: 1.3;
}

.page-content .intro-paragraph {
  font-size: 1.15rem;
  color: #333;
}

/* ---- Related-pages / body-image sample block (from CMS templates) ----- */
.body-image-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 24px;
}

.body-image img {
  width: 250px;
  height: 136px;
  object-fit: cover;
  border-radius: 4px;
}

.body-text a {
  font-weight: 600;
}

.related-pages {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
}

/* ---- Site footer -------------------------------------------------------- */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 1rem 1.5rem;
  background-color: #f4f4f4;
  border-top: 1px solid #e2e2e2;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.site-footer a {
  color: #333;
}

.site-footer .footer-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  margin: 0.5rem 0;
}

.site-footer .footer-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0 auto 0.5rem;
  max-width: 600px;
}

.site-footer .copyright {
  margin-top: 0.75rem;
  color: #777;
}

/* ---- Responsive breakpoints --------------------------------------------- */
@media (max-width: 600px) {
  .site-nav { gap: 1rem; font-size: 0.95rem; }
  .page-header h1 { font-size: 1.5rem; }
  .body-image-wrap { flex-direction: column; }
  .body-image img { width: 100%; height: auto; }
}
