/* 
 * Trailblazer Trailers - Site Stylesheet (final version with hero full-bleed + hide-mobile)
 */

/* -------------------- Root variables -------------------- */
:root {
  --primary: #d72631;
  --secondary: #0070f3;
  --background: #0d0d0d;
  --light: #161616;
  --dark: #000000;
  --text: #eaeaea;
  --radius: 8px;
  --font-family: 'Montserrat', sans-serif;
}

/* -------------------- Themes -------------------- */
body.dark-theme {
  --background: #0d0d0d;
  --light: #161616;
  --dark: #000000;
  --text: #eaeaea;
}
body.light-theme {
  --background: #ffffff;
  --light: #f6f6f6;
  --dark: #0d0d0d;
  --text: #333333;
}

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

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden; /* stop horizontal scroll on mobile */
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* -------------------- Navbar -------------------- */
header.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
.navbar .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative; /* anchor for mobile dropdown */
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Desktop nav ONLY */
@media (min-width: 769px) {
  .navbar nav {
    display: flex;
    gap: 1.5rem;
  }
}
.navbar nav a {
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar nav a:hover,
.navbar nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: #fff;
  text-align: center;

  /* Full-bleed background */
  background: url('../images/hero.jpg') center center / cover no-repeat;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 8vw, 3rem);
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  margin-bottom: 2rem;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--secondary);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* Hide hero button on mobile (add .hide-mobile to hero CTA) */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* -------------------- Sections -------------------- */
section {
  padding: 4rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* -------------------- Feature cards -------------------- */
.features {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.feature-card {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.feature-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 1rem;
  color: var(--text);
}

/* -------------------- Footer -------------------- */
footer {
  background: var(--dark);
  color: #fff;
  padding: 2rem 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer h4 {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}
.footer p,
.footer a {
  color: #ddd;
  font-size: 0.95rem;
}
.footer a:hover {
  color: var(--secondary);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #aaa;
}

/* -------------------- Theme toggle -------------------- */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.25rem;
}
.theme-toggle:hover {
  color: var(--primary);
}

/* -------------------- Sticky CTA -------------------- */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: none;
}
.sticky-cta a.btn {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

/* -------------------- Builder / forms -------------------- */
.builder-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

.form,
.summary-card,
.contact-form {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.form h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}
.form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.form select,
.form input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #333;
  border-radius: var(--radius);
  font-size: 1rem;
}
.form input[type="number"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="text"] {
  -moz-appearance: textfield;
}
.form input[type="number"]::-webkit-outer-spin-button,
.form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form fieldset {
  border: none;
  margin: 1rem 0;
  padding: 0;
}
.form legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.addon-item {
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 0 1 calc(50% - 1rem);
}
.addon-item input {
  margin-right: 0.5rem;
}

.summary-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}
.summary-card .summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.summary-card .summary-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.summary-card .total {
  font-weight: 700;
  color: var(--primary);
}
.summary-card .notes {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #333;
  border-radius: var(--radius);
  font-size: 1rem;
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-details {
  margin-top: 2rem;
}
.contact-details h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-details p,
.contact-details a {
  font-size: 1rem;
  color: var(--text);
}

/* -------------------- FAQ -------------------- */
.faq-list details {
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  outline: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list p {
  margin-top: 0.5rem;
  color: var(--text);
}

/* -------------------- Reviews -------------------- */
.review-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.review-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
}
.review-card .stars {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.review-card p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-style: italic;
}
.review-card .author {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* -------------------- Mobile Navigation -------------------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  z-index: 1100;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  #site-nav.active {
    display: flex;
  }

  #site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
  }
  #site-nav .theme-toggle {
    align-self: flex-start;
    margin-top: 0.5rem;
  }

  /* Force only features/footer/builder to stack */
  .features,
  .footer-grid,
  .builder-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 1rem;
  }
}






