/* SimBro – theme from logo: forest green, orange-brown, yellow, black/white */
:root {
  --green: #1a4d2e;
  --green-bright: #2d6a3e;
  --orange: #b87333;
  --orange-light: #d4925c;
  --yellow: #f4c430;
  --yellow-light: #f8d96a;
  --black: #1a1a1a;
  --gray: #4a4a4a;
  --white: #fafafa;
  --offwhite: #f0efe9;
  --blue: #7eb8da;
  --checker: repeating-conic-gradient(#1a1a1a 0deg 90deg, #fafafa 90deg 180deg, #1a1a1a 180deg 270deg, #fafafa 270deg 360deg);
  --checker-green: repeating-conic-gradient(#1a4d2e 0deg 90deg, #0f351f 90deg 180deg, #1a4d2e 180deg 270deg, #0f351f 270deg 360deg);
  --checker-yellow: repeating-conic-gradient(#f4c430 0deg 90deg, #d4a320 90deg 180deg, #f4c430 180deg 270deg, #d4a320 270deg 360deg);
  --shadow: 0 4px 20px rgba(26, 26, 26, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

/* Vertical columns: green | checker (3 squares total) | main | checker (3 squares) | yellow */
.page-wrap {
  display: grid;
  grid-template-columns: minmax(0, 56px) 96px 1fr 96px minmax(0, 56px);
  min-height: 100vh;
}

@media (min-width: 900px) {
  .page-wrap {
    grid-template-columns: 96px 96px 1fr 96px 96px;
  }
}

.column--checker-left {
  background: var(--checker);
  background-size: 64px 64px;
}

.column--green {
  background: var(--green);
}

.column--yellow {
  background: var(--green);
}

.column--checker-right {
  background: var(--checker);
  background-size: 64px 64px;
}

.column--main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.column--main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-bright);
  text-decoration: underline;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.tagline {
  font-style: italic;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Watermark-style racing image behind main content sections */
.section--alt {
  background: var(--offwhite);
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/backgrounds/benjamin-chambon-erUFqSTEt9Q-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.section--alt .container {
  position: relative;
  z-index: 1;
}

.section--dark {
  background: var(--green);
  color: var(--white);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/backgrounds/jonathan-borba-vExXPX4uhng-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.section--dark a {
  color: var(--yellow-light);
}

.section--dark a:hover {
  color: var(--yellow);
}

.section--dark .btn--accent {
  color: var(--black);
}

.section--dark .btn--accent:hover {
  color: var(--black);
}

/* Checkered strip (header/footer) – optional; kept subtle if you want a thin accent */
.checker-strip {
  height: 16px;
  background: var(--yellow);
}

/* Nav inside green band (hero or page-head) */
.green-band-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.green-band-nav:not(.green-band-nav--end) {
  margin-bottom: 2rem;
}

.hero .green-band-nav--end {
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 0;
  margin-top: 0;
  padding-top: 0;
  align-self: flex-start;
}

.green-band-nav__brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
}

.green-band-nav__brand:hover {
  color: var(--yellow-light);
  text-decoration: none;
}

.green-band-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.green-band-nav__list li {
  display: flex;
}

.green-band-nav__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.hero .green-band-nav__list a,
.page-head .green-band-nav__list a {
  color: var(--white);
}

.green-band-nav__list a:hover,
.hero .green-band-nav__list a:hover,
.page-head .green-band-nav__list a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.green-band-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.green-band-nav__toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Hero – colored block with big logo; nav near top right */
.hero {
  padding: 0.35rem 0 2rem;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-bright) 45%, #234a2e 100%);
  border-bottom: 4px solid var(--black);
  color: var(--white);
}

.hero .container {
  padding-left: 0.5rem;
}

.hero a {
  color: var(--yellow-light);
}

.hero a:hover {
  color: var(--yellow);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.hero-top-row .hero-brand {
  margin-bottom: 0;
}

.hero-content {
  min-width: 0;
  max-width: 42rem;
  padding-left: 0;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@media (min-width: 768px) {
  .hero-logo {
    max-width: 340px;
  }
}

.hero h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.hero .hero-tagline {
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin: 0;
  font-size: 1.15rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  max-width: 36ch;
  color: rgba(255,255,255,0.9);
}

.hero .btn--primary {
  background: var(--yellow);
  color: var(--black);
}

.hero .btn--primary:hover {
  background: var(--yellow-light);
  color: var(--black);
}

.hero .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn--outline:hover {
  background: var(--white);
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-bright);
  color: var(--white);
  text-decoration: none;
}

.btn--accent {
  background: var(--yellow);
  color: var(--black);
}

.btn--accent:hover {
  background: var(--yellow-light);
  color: var(--black);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

/* Product grid */
.products-section {
  margin-bottom: 2rem;
}

.products-section:last-of-type {
  margin-bottom: 0;
}

/* Category as card: header strip + body (content) behind */
.category-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(26, 77, 46, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1);
}

.category-card__header {
  background: linear-gradient(145deg, rgba(26, 77, 46, 0.08) 0%, rgba(26, 77, 46, 0.04) 100%);
  border-bottom: 2px solid rgba(26, 77, 46, 0.2);
  padding: 1rem 1.25rem;
}

.category-card__body {
  padding: 1.25rem;
}

.products-section__heading {
  margin: 0;
  color: var(--green);
  font-size: 1.35rem;
}

.products-section__placeholder {
  margin: 0;
  color: var(--gray);
  font-style: italic;
}

/* Main products page: 4 category cards (image, heading, description; no CTA) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-link-card {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(26, 77, 46, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.category-link-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12);
  text-decoration: none;
  color: inherit;
}

.category-link-card__image {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e8e6e0 0%, var(--offwhite) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.85rem;
}

.category-link-card__body {
  padding: 1.25rem;
}

.category-link-card__body h3 {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 1.25rem;
}

.category-link-card__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

/* Back to Products – prominent on category pages */
.back-to-products {
  margin: 0 0 1.5rem;
}

/* Category intro box – editable text above product cards */
.category-intro {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(26, 77, 46, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  max-width: 50rem;
}

.category-intro p {
  margin: 0;
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

.category-intro p + p {
  margin-top: 0.75rem;
}

.category-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--green);
}

.category-intro h2 + p {
  margin-top: 0;
}

.btn--back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn--back:hover {
  background: var(--yellow-light);
  color: var(--black);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(26, 77, 46, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
}

.product-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12);
}

/* Card as link (whole card clickable) */
a.product-card--linked {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.product-card--linked:hover {
  color: inherit;
}

a.product-card--linked .btn.btn--accent {
  display: inline-block;
  pointer-events: none;
}

.product-card__image {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e8e6e0 0%, var(--offwhite) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.9rem;
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__body h3 {
  margin-bottom: 0.5rem;
  color: var(--green);
}

.product-card__body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* Card content link to product page (image + title + description) */
.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__link:hover {
  color: inherit;
}

.product-card__actions {
  padding: 0 1.25rem 1.25rem;
}

/* Single product page layout */
.product-detail {
  display: grid;
  gap: 1.5rem;
  max-width: 50rem;
}

@media (min-width: 640px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-detail__image {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e8e6e0 0%, var(--offwhite) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.product-detail__body p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--gray);
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: var(--yellow-light);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.footer-grid h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--yellow);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray);
  font-size: 0.9rem;
  color: var(--gray);
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--offwhite);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Page title block */
/* Page-head: hero-sized logo left, title + tagline right; green bar fills height */
.page-head {
  padding: 0.5rem 0 1.5rem;
  min-height: 200px;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-bright) 45%, #234a2e 100%);
  border-bottom: 4px solid var(--black);
  color: var(--white);
}

@media (min-width: 768px) {
  .page-head {
    min-height: 220px;
  }
}

.page-head .container {
  padding-left: 0.5rem;
}

.page-head__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  min-height: 180px;
}

@media (min-width: 768px) {
  .page-head__inner {
    min-height: 200px;
  }
}

.page-head__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.page-head__logo-img {
  height: 160px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@media (min-width: 768px) {
  .page-head__logo-img {
    height: 190px;
  }
}

.page-head__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.page-head__right .green-band-nav {
  margin-bottom: 0;
}

.page-head h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-head .tagline {
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Support / docs list */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-list li {
  border-bottom: 1px solid var(--offwhite);
  padding: 1rem 0;
}

.doc-list li:first-child {
  padding-top: 0;
}

.doc-list a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Compatibility list */
.compat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.compat-list li {
  padding: 0.75rem 1rem;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green);
}

@media (max-width: 1024px) {
  .page-wrap {
    display: block;
  }

  .column--green,
  .column--checker-left,
  .column--checker-right,
  .column--yellow {
    display: none;
  }

  .column--main {
    display: block;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .page-head {
    padding: 0.5rem 0 1.25rem;
    min-height: auto;
  }

  .page-head__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: auto;
  }

  .page-head__logo-img {
    height: 130px;
  }

  .page-head__right {
    width: 100%;
  }

  .green-band-nav {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .green-band-nav__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding-top: 0.25rem;
  }

  .green-band-nav__list a {
    justify-content: flex-start;
    padding: 0.45rem 0;
    font-size: 1rem;
  }

  .js-enabled .green-band-nav__toggle {
    display: inline-flex;
  }

  .js-enabled .green-band-nav__list {
    display: none;
  }

  .js-enabled .green-band-nav.is-open .green-band-nav__list {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .green-band-nav--end {
    width: 100%;
  }

  .hero-logo {
    max-width: 230px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn + .btn {
    margin-left: 0 !important;
    margin-top: 0.65rem;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card__body,
  .category-link-card__body {
    padding: 1rem;
  }
}
