/* ============================================
   venture4wd.com — Static Site Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7em;
  color: #757575;
  background-color: #fff;
}

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

a {
  color: #757575;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c8632b;
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 13px;
  color: #4d4d4d;
}

h1 {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: .055em;
}

h2 {
  font-size: 35px;
  line-height: 1.3em;
}

h3 {
  font-size: 32px;
  line-height: 1.3;
}

h4 {
  font-family: "Roboto Slab", serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.3em;
  margin-bottom: 15px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin-bottom: 1em;
}

/* --- Layout --- */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.site-container.has-sidebar {
  display: flex;
  gap: 0;
}

.site-container.has-sidebar .content-area {
  flex: 0 0 70%;
  max-width: 70%;
  padding-right: 20px;
}

.site-container.has-sidebar .sidebar {
  flex: 0 0 30%;
  max-width: 30%;
}

.site-container.no-sidebar .content-area {
  width: 100%;
}

/* --- Header --- */
.site-header {
  background: #1f1f1f url('https://assets.rockpile.dev/images/site/orangie_dust_banner.jpg') center center / cover no-repeat;
  padding: 0;
}

.inside-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 20px 40px 20px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.main-title a {
  display: block;
}

.header-image {
  width: 350px;
  max-width: 100%;
}

.site-description {
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 600;
  color: #f2f2f2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* --- Navigation --- */
.main-navigation {
  background: #fff;
  z-index: 1000;
}

.inside-navigation {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-nav {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.menu-item a {
  display: block;
  padding: 15px 20px;
  color: #4d4d4d;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: color 0.2s;
}

.menu-item a:hover,
.menu-item.current-menu-item a {
  color: #4d4d4d;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  align-items: center;
  gap: 10px;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #4d4d4d;
}

.menu-toggle .menu-bar-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #4d4d4d;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Content Containers --- */
.content-area article,
.content-area .page-content {
  background: #fff;
  padding: 20px 20px 40px;
}

/* --- Homepage --- */
.home .field-tests-heading {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #4d4d4d;
  text-transform: uppercase;
  letter-spacing: .055em;
  margin-bottom: 20px;
}

.wp-block-embed.youtube-embed {
  margin-bottom: 30px;
}

.wp-block-embed .embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.wp-block-embed .embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home-post-card {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.home-post-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-post-card .card-image {
  flex: 0 0 350px;
}

.home-post-card .card-image img {
  width: 350px;
  height: 233px;
  object-fit: cover;
}

.home-post-card .card-content {
  flex: 1;
}

.home-post-card .card-title {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.home-post-card .card-title a {
  color: #4d4d4d;
}

.home-post-card .card-title a:hover {
  color: #c8632b;
}

.home-post-card .card-meta {
  font-size: 13px;
  color: #9d9d9d;
}

.home-post-card .card-meta .meta-sep {
  margin: 0 5px;
}

.home-post-card .card-excerpt {
  font-size: 16px;
  color: #757575;
  line-height: 1.6;
}

.home-post-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
}

.home-post-card .read-more {
  color: #757575;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  white-space: nowrap;
}

.home-post-card .read-more:hover {
  color: #c8632b;
}

/* --- Blog Listing --- */
.blog-listing {
  background: #fff;
  padding: 20px 20px 40px;
}

.blog-post-entry {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.blog-post-entry .entry-title {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
  line-height: 1.2em;
  margin-bottom: 8px;
}

.blog-post-entry .entry-title a {
  color: #757575;
}

.blog-post-entry .entry-title a:hover {
  color: #9d9d9d;
}

.blog-post-entry .entry-meta {
  font-size: 13px;
  color: #9d9d9d;
  margin-bottom: 15px;
}

.blog-post-entry .entry-meta .author a {
  color: #c8632b;
}

.blog-post-entry .entry-meta .meta-sep {
  margin: 0 5px;
}

.blog-post-entry .post-featured-image {
  margin-bottom: 15px;
}

.blog-post-entry .post-featured-image img {
  width: 100%;
}

.blog-post-entry .entry-excerpt {
  margin-bottom: 10px;
}

.blog-post-entry .read-more-link {
  color: #757575;
  text-decoration: underline;
  font-size: 18px;
}

.blog-post-entry .read-more-link:hover {
  color: #c8632b;
}

/* Pagination */
.pagination {
  text-align: center;
  padding: 30px 0 10px;
}

.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: #fff;
  color: #4d4d4d;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  border: 1px solid #ddd;
}

a.page-numbers:hover {
  background: #c8632b;
  color: #fff;
  border-color: #c8632b;
}

.page-numbers.current {
  background: #c8632b;
  color: #fff;
  border-color: #c8632b;
}

/* --- Single Post --- */
.single-post .entry-title {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: .055em;
  line-height: 1.2em;
  margin-bottom: 8px;
}

.single-post .entry-meta {
  font-size: 13px;
  color: #9d9d9d;
  margin-bottom: 15px;
}

.single-post .entry-meta .author a {
  color: #c8632b;
}

.single-post .entry-meta .meta-sep {
  margin: 0 5px;
}

.single-post .post-featured-image {
  margin-bottom: 25px;
}

.single-post .post-featured-image img {
  width: 100%;
}

.single-post .entry-content p {
  margin-bottom: 1.2em;
}

.single-post .entry-content h2 {
  margin-top: 1.5em;
}

.single-post .entry-content h3 {
  margin-top: 1.2em;
}

.single-post .entry-content img {
  margin: 1em 0;
}

.single-post .entry-content figure {
  margin: 1.5em 0;
}

.single-post .entry-content figcaption {
  font-size: 14px;
  color: #999;
  text-align: center;
  margin-top: 5px;
}

.single-post .entry-content blockquote {
  border-left: 4px solid #c8632b;
  padding: 10px 20px;
  margin: 1em 0;
  font-style: italic;
  color: #555;
  background: #faf6f3;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin-bottom: 1em;
}

.single-post .entry-content a {
  color: #c8632b;
}

.single-post .entry-content a:hover {
  text-decoration: underline;
}

/* Gallery for Soliloquy replacement */
.static-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 1.5em 0;
}

.static-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

/* --- Sidebar --- */
.sidebar .widget {
  background: #f2f2f2;
  padding: 20px;
  margin-bottom: 0;
}

.sidebar .widget-title {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #4d4d4d;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sidebar .mapkind-promo .promo-description {
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  font-weight: 700;
  color: #c8632b;
  line-height: 1.5;
  margin-bottom: 10px;
}

.sidebar .mapkind-promo .promo-detail {
  font-size: 14px;
  color: #757575;
  line-height: 1.6;
}

.sidebar .mapkind-promo .promo-detail a {
  color: #757575;
}

.sidebar .mapkind-promo .promo-detail a:hover {
  color: #c8632b;
}

/* Sidebar signup with background image */
.sidebar .email-signup {
  background: url('https://assets.rockpile.dev/images/site/mkgps_column_02-scaled.jpg') center top / cover no-repeat;
  padding: 0;
  position: relative;
}

.sidebar .email-signup .signup-overlay {
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(77, 77, 77));
  padding: 130px 0 0;
}

.sidebar .signup-form {
  padding: 16px;
}

.sidebar .signup-form .form-intro {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 10px;
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #313131;
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  color: #4d4d4d;
  background: #fff;
  border-radius: 0;
  line-height: 1.5;
}

.signup-form input:focus {
  outline: none;
  border-color: #4d4d4d;
}

.signup-form button {
  width: 100%;
  padding: 15px;
  background: #c8632b;
  color: #fff;
  border: 1px solid #313131;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.signup-form button:hover {
  background: #a84f1f;
}

.form-notice {
  font-family: "Roboto Slab", serif;
  font-size: 13px;
  color: #fff;
  margin-top: 10px;
  text-align: center;
  padding: 0 10px;
}

.form-notice a {
  color: #c8632b;
  text-decoration: underline;
}

/* --- GPX File Browser --- */
.gpx-browser {
  max-width: 1200px;
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  color: #757575;
  line-height: 1.6;
}

.gpx-about {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #c8632b;
}

.gpx-about h3 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  color: #4d4d4d;
  margin: 0 0 10px 0;
  font-size: 20px;
}

.gpx-about h4 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  color: #4d4d4d;
  margin: 15px 0 5px 0;
  font-size: 16px;
}

.gpx-about p { margin: 0 0 10px 0; }

.gpx-about ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.gpx-about li { margin-bottom: 3px; }

.gpx-legend { margin-top: 10px; }

.gpx-section {
  margin-bottom: 4px;
}

.gpx-folder {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.15s;
}

.gpx-folder:hover {
  background-color: #f5f5f5;
}

.gpx-volume .gpx-folder-name {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #4d4d4d;
}

.gpx-arrow {
  display: inline-block;
  width: 16px;
  font-size: 10px;
  color: #1e73be;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.gpx-folder[data-expanded="true"] > .gpx-arrow {
  transform: rotate(90deg);
}

.gpx-folder-icon {
  margin: 0 8px 0 4px;
  font-size: 16px;
  flex-shrink: 0;
}

.gpx-folder-name {
  font-weight: 600;
  color: #4d4d4d;
  flex-grow: 1;
}

.gpx-count {
  font-size: 12px;
  color: #9d9d9d;
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gpx-children {
  padding-left: 24px;
}

.gpx-file {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
}

.gpx-file:hover {
  background-color: #faf6f3;
}

.gpx-file-icon {
  margin: 0 8px 0 4px;
  font-size: 14px;
  flex-shrink: 0;
}

.gpx-file a {
  color: #757575;
  text-decoration: none;
  flex-grow: 1;
}

.gpx-file a:hover {
  color: #c8632b;
  text-decoration: underline;
}

.gpx-filename {
  color: #4d4d4d;
  font-weight: 600;
}

.gpx-label {
  color: #9d9d9d;
  font-weight: 400;
}

.gpx-file a:hover .gpx-filename,
.gpx-file a:hover .gpx-label {
  color: #c8632b;
}

.gpx-size {
  font-size: 12px;
  color: #9d9d9d;
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gpx-subfolder {
  margin-left: 0;
}

.gpx-episode {
  margin-bottom: 2px;
}

/* --- Videos Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.video-card {
  background: #fff;
  overflow: hidden;
}

.video-card a {
  display: block;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: opacity 0.2s;
}

.video-card a:hover img {
  opacity: 0.85;
}

.video-card .video-title {
  padding: 10px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #4d4d4d;
  line-height: 1.4;
}

/* --- Footer --- */
.site-footer {
  background: #1f1f1f;
  color: #9d9d9d;
  text-align: center;
  padding: 30px 40px;
  margin-top: 0;
}

.site-footer .copyright {
  font-size: 13px;
}

/* --- Privacy Policy --- */
.privacy-policy-page .page-content {
  background: #fff;
  padding: 20px 20px 40px;
}

.privacy-policy-page .page-content h2 {
  margin-top: 1.5em;
}

.privacy-policy-page .page-content a {
  color: #c8632b;
}

/* --- Downloads Page --- */
.downloads-page .page-content {
  background: #fff;
  padding: 20px 20px 40px;
}

/* --- Videos Page --- */
.videos-page .page-content {
  background: #fff;
  padding: 20px 20px 40px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1200px) {
  .site-container {
    padding: 20px 15px;
  }
}

@media (max-width: 768px) {
  /* Sidebar stacks below content */
  .site-container.has-sidebar {
    flex-direction: column;
  }

  .site-container.has-sidebar .content-area,
  .site-container.has-sidebar .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  /* Header */
  .inside-header {
    padding: 130px 15px 25px 15px;
  }

  .site-branding {
    align-items: center;
  }

  .site-description {
    font-size: 14px;
  }

  /* Post body headings reduce at tablet */
  .entry-content h2 {
    font-size: 28px;
  }

  /* Videos grid */
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* GPX browser */
  .gpx-children { padding-left: 16px; }
  .gpx-folder { padding: 10px 8px; }
  .gpx-file { padding: 6px 8px; }
  .gpx-count { display: none; }
  .gpx-volume .gpx-folder-name { font-size: 16px; }
}

@media (max-width: 767px) {
  /* Navigation - hamburger appears */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-nav.toggled {
    display: flex;
  }

  .inside-navigation {
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-item a {
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }

  /* Homepage post cards stack */
  .home-post-card {
    flex-direction: column;
  }

  .home-post-card .card-image {
    flex: none;
  }

  .home-post-card .card-image img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .site-description {
    font-size: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .home-post-card .card-title {
    font-size: 18px;
  }
}

/* --- Round 2 Fixes --- */

/* Heading separator line (3px gray border) */
.heading-separator {
  border-bottom: 3px solid #d0d0d0;
  height: 3px;
  margin-bottom: 20px;
}

/* Page title for standalone pages */
.page-title {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
  color: #4d4d4d;
  margin-bottom: 13px;
}

/* Widget-title separator */
.sidebar .widget-title {
  padding-bottom: 13px;
}

.sidebar .widget-title-separator {
  border-bottom: 3px solid #d0d0d0;
  height: 3px;
  margin-bottom: 15px;
}

/* GET INVOLVED heading in email signup */
.sidebar .email-signup .signup-heading {
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .055em;
  text-align: center;
  margin-bottom: 5px;
  padding: 0 16px;
}

/* Blog listing entry-title link color — matches original #757575 */

/* Video grid uses video-item instead of video-card */
.video-item {
  background: #fff;
  overflow: hidden;
}

.video-item .video-thumbnail {
  display: block;
  position: relative;
}

.video-item .video-thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: opacity 0.3s;
}

.video-item .video-thumbnail:hover img {
  opacity: 0.85;
}

.video-item .video-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-item .video-info {
  padding: 10px 0;
}

.video-item .video-title {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  font-weight: 600;
  color: #4d4d4d;
  line-height: 1.4;
  margin-bottom: 5px;
}

.video-item .video-title a {
  color: #4d4d4d;
}

.video-item .video-title a:hover {
  color: #c8632b;
}

.video-item .video-date {
  font-size: 13px;
  color: #9d9d9d;
  margin-bottom: 5px;
}

.video-item .video-description {
  font-size: 14px;
  color: #757575;
  line-height: 1.5;
}

/* Video grid container */
.video-grid-container {
  margin: 0 0 3rem 0;
}

/* Playlist title separator */
.playlist-separator {
  border-bottom: 3px solid #d0d0d0;
  height: 3px;
  margin-bottom: 20px;
}

/* --- Slideout Navigation (I2) --- */
.slideout-navigation {
  position: fixed;
  top: 0;
  left: -265px;
  width: 265px;
  height: 100%;
  background: #fff;
  z-index: 10000;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.slideout-navigation.active {
  left: 0;
}

.slideout-inner {
  padding: 20px 0;
}

.slideout-exit {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  color: #4d4d4d;
}

.slideout-exit svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.slideout-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slideout-nav .menu-item a {
  display: block;
  padding: 12px 20px;
  color: #4d4d4d;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid #eee;
}

.slideout-nav .menu-item:first-child a {
  border-top: 1px solid #eee;
}

.slideout-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.slideout-overlay.active {
  display: block;
}

/* --- Paging Navigation (B3) --- */
.paging-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  gap: 10px;
}

.paging-navigation .nav-previous,
.paging-navigation .nav-next {
  white-space: nowrap;
}

.paging-navigation .nav-previous a,
.paging-navigation .nav-next a {
  color: #757575;
  text-decoration: none;
}

.paging-navigation .nav-previous a:hover,
.paging-navigation .nav-next a:hover {
  color: #c8632b;
}

.paging-navigation .nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.paging-navigation .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: #fff;
  color: #4d4d4d;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  border: 1px solid #ddd;
}

.paging-navigation a.page-numbers:hover {
  background: #c8632b;
  color: #fff;
  border-color: #c8632b;
}

.paging-navigation .page-numbers.current {
  background: #c8632b;
  color: #fff;
  border-color: #c8632b;
}

.paging-navigation .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
