/* assets/global.css */
:root {
  --max: 1140px;
  --pad: 24px;
  --border: #e2e8f0;
  --muted: #64748b;
  --black: #0f172a;
  --bg-light: #f8fafc;
  --primary: #E31837; /* HQA Red */
  --primary-hover: #C8142F;
  --radius: 8px; 
  --radius-sm: 4px; 
}

html { scroll-behavior: smooth; }

body { 
  margin: 0; 
  font-family: 'Inter', sans-serif; 
  color: var(--black); 
  background: #fff; 
  line-height: 1.5;
}

.wrap { 
  max-width: var(--max); 
  margin: 0 auto; 
  padding: 0 var(--pad); 
}

/* =========================================
   UTILITY & LAYOUT HELPER CLASSES
   ========================================= */
.wrap-narrow { max-width: 800px; margin: 0 auto; }
.text-center { text-align: center; }
.bg-light { background: var(--bg-light); }
.border-bottom { border-bottom: 1px solid var(--border); }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.no-mb { margin-bottom: 0 !important; }

.about-text {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}
.navbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  width: 100%;
  background: #fff;
  padding: 70px 0 0; 
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle at center top, rgba(227,24,55,0.06) 0%, rgba(255,255,255,0) 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto 28px;
  justify-content: center;
}
.logo img { height: 32px; width: auto; display: block; }
.logo .tag { 
  font-size: 13px; 
  color: var(--muted); 
  letter-spacing: 0.5px; 
  font-weight: 700; 
  text-transform: uppercase;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

h1 { 
  margin: 0 auto 18px; 
  font-size: 52px; 
  letter-spacing: -1.2px; 
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
}

.sub { 
  margin: 0 auto 24px; 
  font-size: 18px; 
  color: var(--muted); 
  line-height: 1.6; 
  max-width: 680px;
}

.feature-pills { 
  margin: 0 auto 24px; 
  padding: 0; 
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.feature-pills li { 
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px; 
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.feature-pills li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}

.note { 
  font-size: 14px; 
  color: var(--muted); 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 30px; 
  position: relative; 
  z-index: 2; 
}
.note::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

.hero-media {
  width: 100%;
  max-width: 1200px; 
  margin: -20px auto -60px; 
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 0;
}

@media (max-width: 768px) { 
  .hero { padding: 50px 0 0; }
  h1 { font-size: 38px; }
  .sub { font-size: 16px; }
  .hero-media { margin: 0px auto -30px; }
  .nav-links { display: none; } 
}

/* =========================================
   SECTIONS & HOMEPAGE CARDS
   ========================================= */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
h2 { margin: 0 0 12px; font-size: 32px; letter-spacing: -0.5px; font-weight: 800; }
.muted { color: var(--muted); font-size: 18px; margin-top: 0; }

.cards { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
  border-color: #cbd5e1;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px; 
  background: var(--bg-light);
  margin-bottom: 24px;
  padding: 10px;
  box-sizing: border-box;
}
.card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.sku { 
  font-size: 13px; 
  color: var(--primary); 
  font-weight: 800; 
  background: rgba(227, 24, 55, 0.1);
  padding: 4px 10px;
  border-radius: 4px; 
}
.topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px;}
.card p { margin: 0 0 20px; line-height: 1.6; color: #334155; flex-grow: 1; }

.card-link { 
  font-weight: 700; 
  font-size: 15px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-link:hover { color: var(--primary-hover); }

/* SPLIT SECTION (For About/Process) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
.split-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
  color: #334155;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.formwrap {
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  padding: 80px 0;
}
.formcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { font-size: 32px; }

form { display: grid; gap: 16px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) { 
  .row { grid-template-columns: 1fr; } 
  .formcard { padding: 24px; }
}

input, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.15);
}
textarea { resize: vertical; min-height: 140px; }

.status { min-height: 20px; font-size: 14px; font-weight: 500; color: var(--primary); }

.btnrow { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  justify-content: center;
  margin-bottom: 12px;
}

.btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff !important;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(227, 24, 55, 0.2);
}
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(227, 24, 55, 0.3);
}

.btn.secondary {
  background: #fff;
  color: var(--black) !important;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn.secondary:hover {
  border-color: var(--muted);
  background: var(--bg-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* =========================================
   FOOTER
   ========================================= */
.footer { 
  padding: 40px 0; 
  border-top: 1px solid var(--border); 
  background: #fff;
  text-align: center;
}
.footer .small { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer b { color: var(--black); font-size: 16px; }
.link { color: var(--primary); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* =========================================
   INFINITE LOGO TICKER
   ========================================= */
.logo-ticker {
  overflow: hidden;
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  white-space: nowrap;
}

.logo-track {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px; 
  animation: ticker 35s linear infinite;
}

.logo-track img {
  height: 40px; 
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.logo-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* =========================================
   SUBPAGE HEADER (EXECUTIVE SUMMARY)
   ========================================= */
.subpage-header {
  background: var(--bg-light);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  text-align: center; /* Centers the text above the box */
}
.page-title {
  font-size: 36px; /* Scaled down from 42px */
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--black);
}
.page-sub {
  color: #475569;
  font-size: 17px; /* Scaled down slightly */
  max-width: 800px;
  line-height: 1.6;
  margin: 0 auto 40px auto; /* Ensures the paragraph stays centered */
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  text-align: left; /* Keeps the text inside the box aligned cleanly to the left */
}
.intro-grid h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 16px;
  font-weight: 800;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
.intro-grid p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
.intro-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.small-list {
  margin-top: 0;
}
.small-list li {
  font-size: 14px;
  margin-bottom: 10px;
  padding-left: 24px;
}
.small-list li::before {
  font-size: 14px;
}
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .intro-lists { grid-template-columns: 1fr; }
  .page-title { font-size: 28px; }
}

/* =========================================
   PROJECT BLOCKS
   ========================================= */
.project-section {
  border-bottom: 1px solid var(--border);
}
.project-section.alt-bg {
  background: var(--bg-light);
}
.split.align-center {
  align-items: center;
}

.project-img img {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.project-tag {
  margin-bottom: 12px;
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.project-title {
  font-size: 30px;
  margin-bottom: 16px;
}
.project-desc {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-list {
  font-size: 15px;
  margin-bottom: 24px;
}

/* Project Meta (Date & Location) */
.project-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
.project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-meta svg {
  width: 16px;
  height: 16px;
  color: var(--primary); /* Makes the icons HQA Red */
}

/* Subpage Video */
.subpage-video-wrap {
  margin: 0 auto 40px; 
  max-width: 1000px;
}
.subpage-video-wrap video {
  width: 100%; 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); 
  display: block;
}