/* GLOBAL STYLES */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3 {
  margin-top: 0;
}

/* NAVIGATION */
nav {
  background: #990000; /* crimson */
  color: white;
  padding: 10px 20px;
}

/* TOP INFO BAR (shows contact info near top of page) */
.top-info {
  background: #222;
  color: #fff;
  font-size: 0.95rem;
}
.top-info-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.top-info a {
  color: #ffdd57;
  text-decoration: none;
}

/* Add neat separators between top-info items */
.top-info-container > span {
  position: relative;
  padding: 0 8px;
}
.top-info-container > span:not(:last-child)::after {
  content: "|";
  color: rgba(255, 255, 255, 0.6);
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Reduce clutter on very small screens by lowering separator opacity */
@media (max-width: 420px) {
  .top-info-container > span:not(:last-child)::after {
    color: rgba(255,255,255,0.35);
  }
  .top-info-container {
    gap: 10px;
  }
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

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

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  color: #ffdd57;
}

/* Hamburger menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 4px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    background-color: #990000;
    position: absolute;
    top: 100%; /* place under nav */
    right: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    border-radius: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  .nav-links.active {
    max-height: 320px;
    opacity: 1;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: white;
  padding: 48px 20px;

  /* Use a relative path to the images folder and match filename case */
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('images/WRFront.jpg') center/cover no-repeat;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .top-info-container {
    justify-content: center;
    padding: 8px 12px;
    gap: 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 55vh;
    padding: 30px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p, .hero-bottom p {
    font-size: 1rem;
    max-width: 90%;
    margin: 12px auto;
  }

  /* Make footer less tall on mobile so top content is more prominent */
  footer {
    padding: 14px 12px;
    font-size: 0.95rem;
  }
}

.hero-top {
  margin-top: 20px;
}

.hero-bottom {
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 20px;     /* pushes it down slightly from the top */
  margin-bottom: auto;  /* allows other items to drop lower */
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 20px 0 15px;  /* space around the paragraph */
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Center the hero bottom paragraph specifically */
.hero-bottom p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-primary {
  margin-bottom: 40px; /* push button lower toward bottom */
}


/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: #ffdd57;
  color: #222;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: #e6c84f;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: #990000; /* crimson */
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
  background: #ffdd57;
  color: #222;
}

/* ABOUT */
.about {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

/* HIGHLIGHTS */
.highlights {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.highlight {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.highlight h3 {
  margin-bottom: 10px;
  color: #990000; /* crimson */
}

/* PARTS GRID */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}
.part-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.part-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.part-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}
.part-card h2 {
  font-size: 1.25rem;
  margin: 10px 0 5px;
}
.part-card p {
  margin: 5px 0;
}
.part-card a {
  font-weight: bold;
  color: #990000; /* crimson */
  text-decoration: none;
}
.part-card a:hover {
  color: #ffdd57;
}

/* FORMS */
form {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
form label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}
form input, form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #990000; /* crimson */
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
form button:hover {
  background-color: #660000; /* darker crimson */
}

/* FOOTER */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
footer a {
  color: #ffdd57;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

/* SELL BANNER */
.sell-banner {
  background: linear-gradient(135deg, #990000, #660000); /* crimson gradient */
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin: 0;
  width: 100%;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2); /* subtle top shadow */
}

.sell-banner h3 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.sell-banner p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.sell-banner .btn-secondary {
  padding: 14px 28px;
  background: white;
  color: #990000; /* crimson */
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.sell-banner .btn-secondary:hover {
  background: #ffdd57;
  color: #222;
}
/* HAMBURGER ICON */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
}

/* NAVIGATION — MOBILE FIXES */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #990000; /* crimson */
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
/* HAMBURGER BUTTON STYLING */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 4px;
  background-color: white;
  transition: all 0.3s ease;
}

/* TRANSFORM HAMBURGER TO X */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* NAVIGATION MENU — MOBILE MODE */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #990000;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
/* (duplicate incorrect .hero rule removed) */
/* ===========================
   FLUID GUTTERS & SPACING
   (drop this at the END of style.css)
   =========================== */

/* 1) Fluid layout variables */
:root{
  --page-max: 1200px;                    /* max readable width on desktop */
  --gutter: clamp(16px, 5vw, 48px);      /* side padding scales with screen */
  --section-space: clamp(24px, 6vw, 64px);/* vertical space between sections */
}

/* 2) Constrain main content + add fluid side gutters */
main{
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 3) Give sections breathing room (except hero, which already has its own padding) */
main > section:not(.hero){
  margin-block: var(--section-space);
}

/* 4) Keep nav/footer/sell-banner full-width, but center their inner content
      and add the same fluid side gutters */
.nav-container,
.footer-container{
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* If your sell-banner content isn't wrapped, add gutters directly: */
.sell-banner{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 5) Parts page: ensure the grid respects the gutters & has comfy spacing */
.parts-grid{
  padding-left: 0;  /* main already provides gutters */
  padding-right: 0;
  row-gap: 36px;
}

/* 6) Forms: better side padding on small screens */
@media (max-width: 768px){
  form{
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 7) Optional: slightly larger base type on small screens for readability */
@media (max-width: 480px){
  body{ font-size: 17px; } /* bump from 16px if it feels tight */
}

/* 8) Safety: prevent any full-bleed section text hugging edges on tiny screens */
.hero, .sell-banner{
  padding-left: max(var(--gutter), 16px);
  padding-right: max(var(--gutter), 16px);
}
/* SELL BANNER — force vertical stacking and clean spacing */
.sell-banner {
  /* keep your existing background/gradient/colors */
  width: 100%;
  display: block;                 /* ensure it behaves like a full-width block */
  text-align: center;
  padding-top: 60px;              /* keep your current padding values */
  padding-bottom: 60px;
}
.footer-container {
  max-width: var(--page-max, 1200px);
  margin-inline: auto;
  padding-left: var(--gutter, 24px);
  padding-right: var(--gutter, 24px);
}


/* Inner wrapper: center and stack vertically */
.sell-banner__inner {
  max-width: 1000px;              /* readable line length */
  margin: 0 auto;                 /* centers the inner block */
  display: flex;
  flex-direction: column;         /* <- STACK content top-to-bottom */
  align-items: center;            /* center horizontally */
  gap: 14px;                      /* space between h3, p, and button */
  padding-left: var(--gutter, 24px);
  padding-right: var(--gutter, 24px);
}

/* Tidy default margins so text doesn't collapse together */
.sell-banner__inner h3 {
  margin: 0;                      /* reset then add explicit spacing via gap */
  line-height: 1.2;
  text-wrap: balance;             /* nicer wrapping where supported */
}
.sell-banner__inner p {
  margin: 0;
  line-height: 1.6;
}

/* Ensure the button stays a button, not inline text */
.sell-banner__inner .btn-secondary {
  display: inline-block;
}
/* --- Sell Banner: align perfectly with site container --- */
.sell-banner {
  /* keep your existing gradient/background/color */
  width: 100%;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 60px;
  box-sizing: border-box;   /* ensure padding doesn't throw off width */
}

.sell-banner__inner {
  /* USE SAME CONTAINER AS THE REST OF THE SITE */
  max-width: var(--page-max, 1200px);
  margin-inline: auto;                 /* center in viewport */
  padding-inline: var(--gutter, 24px); /* same side gutters */
  
  /* stack & center content */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* tidy default margins so spacing comes from gap */
.sell-banner__inner h3 { margin: 0; line-height: 1.2; }
.sell-banner__inner p  { margin: 0; line-height: 1.6; }
.sell-banner__inner .btn-secondary { display: inline-block; }
