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

:root {
  --red:     #ff2a13;
  --red-dark:#c61300;
  --dark:    #272727;
  --mid:     #848484;
  --light:   #f3f3f3;
  --white:   #ffffff;
  --border:  #e0e0e0;
  --max:     1200px;
  --radius:  4px;
  font-size: 15px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--mid);
  background: var(--light);
  line-height: 1.7;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header / Nav ── */
#site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  line-height: 1;
}
.logo span { color: var(--red); }
.logo small { display: block; font-size: .6rem; font-weight: 400; color: var(--mid); letter-spacing: .12em; text-transform: uppercase; }

/* ── Navigation ── */
nav#main-nav ul { list-style: none; display: flex; gap: 0; }
nav#main-nav > ul > li { position: relative; }
nav#main-nav > ul > li > a {
  display: block;
  padding: .5rem 1rem;
  color: var(--dark);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s;
}
nav#main-nav > ul > li > a:hover,
nav#main-nav > ul > li.active > a { color: var(--red); }

/* Dropdown */
nav#main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 220px;
  z-index: 200;
}
nav#main-nav .dropdown li a {
  display: block;
  padding: .55rem 1.2rem;
  color: var(--mid);
  font-size: .83rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
nav#main-nav .dropdown li:last-child a { border-bottom: none; }
nav#main-nav .dropdown li a:hover { background: var(--light); color: var(--red); }
nav#main-nav .dropdown .dropdown-heading {
  padding: .4rem 1.2rem .1rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--border);
}
nav#main-nav li:hover > .dropdown { display: block; }

/* Mobile toggle */
#nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
#nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }

/* ── Hero ── */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,42,19,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { color: var(--white); font-size: 2.8rem; margin-bottom: .5rem; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero .btn { display: inline-block; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
  cursor: pointer;
  border: none;
}
.btn-red  { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #444; color: var(--white); }

/* ── Section ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--dark); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--mid); max-width: 600px; margin: 0 auto; }

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.card-body p { font-size: .9rem; margin-bottom: 1rem; }

/* ── Product page ── */
.product-header {
  background: var(--white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.product-header h1 { margin-bottom: .75rem; }
.product-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: var(--white);
  padding: .65rem 1.4rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s;
}
.product-download:hover { background: var(--red-dark); color: var(--white); }
.product-download svg { width: 16px; height: 16px; }

.product-body { padding: 3rem 0; }
.product-body img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ── Testimonial ── */
.testimonial {
  background: var(--light);
  border-left: 4px solid var(--red);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.testimonial blockquote { font-style: italic; font-size: 1.05rem; color: var(--dark); margin-bottom: .75rem; }
.testimonial cite { font-size: .85rem; font-weight: 700; color: var(--red); font-style: normal; }

/* ── Downloads page ── */
.download-list { list-style: none; }
.download-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.download-list li:hover { border-color: var(--red); }
.download-list .dl-icon { color: var(--red); flex-shrink: 0; }
.download-list .dl-name { font-weight: 600; color: var(--dark); flex: 1; }
.download-list .dl-link { font-size: .82rem; color: var(--red); font-weight: 700; white-space: nowrap; }
.download-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mid);
  margin: 2rem 0 .75rem;
}

/* ── Stats / feature strips ── */
.feature-strip { display: flex; gap: 2rem; flex-wrap: wrap; padding: 2rem 0; }
.feature-item { flex: 1; min-width: 180px; text-align: center; }
.feature-item .icon { font-size: 2rem; margin-bottom: .5rem; color: var(--red); }
.feature-item h4 { color: var(--dark); margin-bottom: .25rem; }
.feature-item p { font-size: .85rem; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: .35rem; font-size: .88rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ── Page content ── */
.page-header {
  background: var(--white);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; }
.breadcrumb { font-size: .8rem; color: var(--mid); margin-bottom: .5rem; }
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--red); }

.page-content { padding: 3rem 0; max-width: 860px; }
.page-content h2 { margin: 2rem 0 .75rem; }
.page-content h3 { margin: 1.5rem 0 .5rem; color: var(--red); }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: .35rem; }

/* ── Footer ── */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.footer-logo span { color: var(--red); }
.footer-col h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .3rem; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .8rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--red); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  nav#main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  nav#main-nav.open { display: block; }
  nav#main-nav ul { flex-direction: column; }
  nav#main-nav > ul > li > a { border-bottom: 1px solid var(--border); }
  nav#main-nav .dropdown { display: block; position: static; border-top: none; box-shadow: none; background: var(--light); }
  #nav-toggle { display: block; }
}
