/* ==================================================
   C-STAD Global Styles (Clean Build)
   ================================================== */

/* Design tokens */
:root {
  --bg: #050609;
  --bg-elevated: #10131a;
  --card: #151924;
  --accent: #e11b22;       /* C-STAD red */
  --accent-soft: #fecaca1a;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2933;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0,0,0,.6);
  --font-sans: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* Base reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top,#111827 0,#020617 55%,#000 100%);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==================================================
   HEADER & NAVIGATION
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(90deg,#020617 0,#020617ee 48%,#020617 100%);
  border-bottom: 1px solid #111827;
  padding: 0.5rem 1.25rem 0.3rem; /* top / sides / bottom */
}

/* Logo + brand container */

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* LOGO – single source of truth */

.brand-logo {
  height: 280px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Slightly smaller logo on small screens */
@media (max-width: 780px) {
  .brand-logo {
    height: 200px;
  }
}

/* Brand link wrapper */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
}

/* NAVIGATION */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #1f2933;
  border-radius: 10px;
  color: var(--text);
  padding: .3rem .7rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.4rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  margin-top: 0;       /* keeps menu close to logo */
  margin-bottom: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 1.05rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  transition: color .15s ease-out,
              background .15s ease-out,
              transform .15s ease-out;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: var(--text);
  background: rgba(225,27,34,.25);
}

/* Mobile nav */

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    background: #020617;
    border-radius: 12px;
    padding: .6rem .5rem .8rem;
    margin-top: .6rem;
    margin-bottom: .6rem;
    width: 100%;
    max-width: 360px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }
}

/* ==================================================
   PAGE LAYOUT
   ================================================== */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* ==================================================
   HERO SECTION
   ================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.4fr);
  gap: 2rem;
  padding: 3rem 0 3rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(248,113,113,0.16), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-text {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem,4vw,3.1rem);
  margin: 0 0 .75rem;
}

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.hero-tags li {
  border-radius: 999px;
  border: 1px solid #1f2933;
  padding: .2rem .7rem;
  font-size: .78rem;
  color: var(--muted);
  background: rgba(15,23,42,.75);
}

/* ==================================================
   GRIDS & CARDS
   ================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.grid-3 article {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid #1f2933;
  transition: transform .18s ease-out,
              box-shadow .18s ease-out,
              border-color .18s ease-out;
}

.grid-3 h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.grid-3 article:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(0,0,0,0.75);
  border-color: rgba(248,113,113,0.35);
}

/* Generic card grid */

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.3rem;
  border: 1px solid #1f2933;
  box-shadow: var(--shadow);
  transition: transform .18s ease-out,
              box-shadow .18s ease-out,
              border-color .18s ease-out;
}

.card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card ul {
  padding-left: 1.2rem;
  margin: .4rem 0 .75rem;
}

.card ul li {
  margin: .1rem 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(0,0,0,0.75);
  border-color: rgba(248,113,113,0.35);
}

/* 2-column grid */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.4rem;
}

/* ==================================================
   STRIP / FEATURE BANNER
   ================================================== */

.strip {
  margin-top: 1.5rem;
}

.strip-inner {
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  background: linear-gradient(90deg,rgba(239,68,68,.08),rgba(248,250,252,.02));
  border: 1px solid #b91c1c55;
}

.strip-inner h2 {
  margin-top: 0;
}

/* ==================================================
   BUTTONS & TEXT UTILITIES
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-size: .9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease-out,
              box-shadow .16s ease-out,
              filter .16s ease-out;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: #4b5563;
}

.btn.small {
  padding: .45rem .95rem;
  font-size: .82rem;
}

.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.text-link {
  color: var(--accent);
  font-size: .95rem;
}

.text-link:hover {
  text-decoration: underline;
}

.page-header {
  margin: 1rem 0 1.5rem;
}

.page-header h1 {
  margin: .2rem 0 0;
}

.page-header p {
  color: var(--muted);
  max-width: 44rem;
}

.checklist {
  padding-left: 1.2rem;
}

.checklist li {
  margin: .2rem 0;
}

.small {
  font-size: .8rem;
  color: var(--muted);
}

/* ==================================================
   DOWNLOADS LIST
   ================================================== */

.downloads-list h2 {
  margin-top: 1.3rem;
  margin-bottom: .2rem;
}

.downloads-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 .4rem;
}

.downloads-list li {
  margin: .1rem 0;
}

.downloads-list a {
  font-size: .95rem;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
}

/* ==================================================
   CONTACT LAYOUT
   ================================================== */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,.9fr);
  gap: 1.4rem;
}

.contact-form {
  background: var(--card);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid #1f2933;
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: .75rem;
}

.form-row label {
  font-size: .86rem;
  margin-bottom: .2rem;
}

.form-row label span {
  color: var(--accent);
  margin-left: .15rem;
}

input[type=text],
input[type=email],
select,
textarea {
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020617;
  color: var(--text);
  padding: .5rem .6rem;
  font-family: inherit;
  font-size: .9rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #f97373;
  outline-offset: 1px;
}

.form-row.actions {
  margin-top: 1rem;
}

.contact-side {
  font-size: .95rem;
  color: var(--muted);
}

.contact-side h2 {
  color: var(--text);
}

/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
  border-top: 1px solid #111827;
  padding: 1.4rem 1.25rem 1.8rem;
  background: #020617;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* ==================================================
   RESPONSIVE ADJUSTMENTS
   ================================================== */

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid-3,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.2rem 0 1.8rem;
  }
}
