/* ================================================
   QTS Theme — Main Stylesheet (v2)
   ================================================ */

:root {
  --navy:       #1B2D6B;
  --navy-dark:  #111E4A;
  --navy-deep:  #0B1330;
  --red:        #B91C1C;
  --red-light:  #DC2626;
  --white:      #FFFFFF;
  --offwhite:   #F5F6FA;
  --grey-light: #E8EAF0;
  --grey-mid:   #94A3B8;
  --grey-text:  #475569;
  --text-dark:  #0F172A;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:     6px;
  --radius-lg:  12px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:     0 4px 24px rgba(11, 19, 48, 0.18);
  --shadow-lg:  0 12px 48px rgba(11, 19, 48, 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-light); border-color: var(--red-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(185,28,28,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================
   NAVIGATION
   ================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 19, 48, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  transition: background var(--transition), box-shadow var(--transition);
}
/* Solid bar on inner pages */
#site-header.header-solid { background: var(--navy-deep); }
/* Front page: transparent over the dark hero, solid once scrolled */
#site-header.header-transparent.at-top {
  background: linear-gradient(to bottom, rgba(11,19,48,0.85) 0%, rgba(11,19,48,0.2) 60%, transparent 100%);
  box-shadow: none;
}
#site-header.scrolled {
  background: rgba(11, 19, 48, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.35);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 32px; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-img { height: 38px; width: auto; display: block; }

.nav-menu { display: flex; align-items: stretch; gap: 4px; flex: 1; justify-content: center; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-link {
  display: block; padding: 8px 14px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.1); }

/* Dropdown — hover-gap fix: flush to trigger + invisible padding bridge */
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.dropdown-inner {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  min-width: 220px; padding: 8px;
  box-shadow: var(--shadow-lg);
}
.dropdown a { display: block; padding: 10px 14px; font-size: 0.85rem; color: rgba(255,255,255,0.8); border-radius: var(--radius); transition: var(--transition); }
.dropdown a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.7); transition: var(--transition); }
.nav-phone:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--white); }

/* ================================================
   HERO
   ================================================ */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(27,45,107,0.7) 0%, transparent 70%), linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 50%, #0d1f5c 100%); }
.hero-bg-img { position: absolute; inset: 0; background-image: url('../images/hero-bg.jpg'); background-size: cover; background-position: center; opacity: 0.22; mix-blend-mode: luminosity; }
.hero-accent { position: absolute; bottom: 0; right: 0; width: 45%; height: 100%; background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(185,28,28,0.08) 100%); pointer-events: none; }
.hero-accent-line { position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 100px; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-eyebrow span { display: block; width: 32px; height: 2px; background: var(--red); }
.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); color: var(--white); margin-bottom: 24px; font-weight: 800; text-transform: uppercase; }
.hero-title em { font-style: normal; color: var(--red); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 520px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.05); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.08); }
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 24px; border-right: 1px solid rgba(255,255,255,0.08); text-align: center; }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-num span { color: var(--red); }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ================================================
   TRUST BAR
   ================================================ */
#trust-bar { background: var(--offwhite); border-bottom: 1px solid var(--grey-light); padding: 28px 0; }
.trust-inner { display: flex; align-items: center; gap: 48px; overflow-x: auto; scrollbar-width: none; }
.trust-inner::-webkit-scrollbar { display: none; }
.trust-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-mid); white-space: nowrap; flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; gap: 40px; flex: 1; }
.trust-logo { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #B0BAD0; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; transition: var(--transition); }
.trust-logo:hover { color: var(--navy); }

/* ================================================
   ABOUT
   ================================================ */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-tag { margin-bottom: 16px; }
.about-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); margin-bottom: 24px; text-transform: uppercase; }
.about-title em { font-style: normal; color: var(--red); }
.about-body { color: var(--grey-text); line-height: 1.8; margin-bottom: 20px; font-size: 1.025rem; }
.about-certs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.cert-badge { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--grey-light); border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.cert-badge .badge-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.about-visual { position: relative; }
.about-img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); display: flex; align-items: center; justify-content: center; }
.about-img-placeholder svg { width: 80px; height: 80px; opacity: 0.15; color: var(--white); }
.about-badge-overlay { position: absolute; bottom: -24px; left: -24px; background: var(--red); color: var(--white); padding: 24px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-badge-overlay .num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.about-badge-overlay .lbl { font-size: 0.8rem; margin-top: 4px; opacity: 0.85; }

/* ================================================
   SERVICES
   ================================================ */
#services { background: var(--navy-deep); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); text-transform: uppercase; margin-bottom: 16px; }
.section-title.dark { color: var(--navy); }
.section-lead { font-size: 1.05rem; color: rgba(255,255,255,0.6); max-width: 540px; margin: 0 auto; }
.section-lead.dark { color: var(--grey-text); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,0.06); border-radius: var(--radius-lg); overflow: hidden; }
.service-card { background: rgba(255,255,255,0.03); padding: 40px 32px; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { background: rgba(255,255,255,0.07); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; background: rgba(185,28,28,0.12); border: 1px solid rgba(185,28,28,0.25); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--red); }
.service-icon svg { width: 24px; height: 24px; }
.service-title { font-size: 1.15rem; color: var(--white); text-transform: uppercase; margin-bottom: 12px; }
.service-desc { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 24px; }
.service-link { font-size: 0.82rem; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.service-link:hover { gap: 10px; }

/* ================================================
   INDUSTRIES
   ================================================ */
#industries { background: var(--offwhite); }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; border: 1px solid var(--grey-light); transition: var(--transition); cursor: pointer; }
.industry-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.industry-icon { width: 44px; height: 44px; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); margin-bottom: 16px; }
.industry-icon svg { width: 20px; height: 20px; }
.industry-title { font-size: 0.95rem; color: var(--navy); text-transform: uppercase; margin-bottom: 8px; }
.industry-desc { font-size: 0.82rem; color: var(--grey-text); line-height: 1.6; }

/* ================================================
   PROCESS
   ================================================ */
#process { background: var(--white); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(to right, var(--red), var(--navy)); z-index: 0; }
.process-step { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step-num { width: 72px; height: 72px; background: var(--white); border: 3px solid var(--grey-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--navy); transition: var(--transition); }
.process-step:hover .step-num { border-color: var(--red); color: var(--red); background: rgba(185,28,28,0.04); }
.step-title { font-size: 1rem; color: var(--navy); text-transform: uppercase; margin-bottom: 10px; }
.step-desc { font-size: 0.85rem; color: var(--grey-text); line-height: 1.65; }

/* ================================================
   NEWS
   ================================================ */
#news { background: var(--navy-deep); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.news-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.news-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); transform: translateY(-3px); }
.news-card-img { aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.1); }
.news-card-img-placeholder svg { width: 40px; height: 40px; }
.news-card-body { padding: 28px 24px; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); background: rgba(185,28,28,0.12); padding: 4px 10px; border-radius: 100px; }
.news-date { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.news-title { font-size: 1.05rem; color: var(--white); line-height: 1.35; margin-bottom: 12px; font-weight: 700; }
.news-excerpt { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 20px; }
.news-read-more { font-size: 0.82rem; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.news-read-more:hover { gap: 10px; }

/* ================================================
   CAREERS BAND
   ================================================ */
#careers-band { background: var(--red); padding: 80px 0; position: relative; overflow: hidden; }
#careers-band::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.careers-inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.careers-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); text-transform: uppercase; margin-bottom: 12px; }
.careers-sub { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 500px; }
.btn-careers { background: var(--white); color: var(--red); border-color: var(--white); font-weight: 700; padding: 16px 36px; font-size: 1rem; white-space: nowrap; }
.btn-careers:hover { background: var(--offwhite); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* ================================================
   CONTACT
   ================================================ */
#contact { background: var(--offwhite); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info .section-title { font-size: 2rem; }
.contact-lead { color: var(--grey-text); line-height: 1.75; margin-bottom: 40px; font-size: 1rem; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon { width: 44px; height: 44px; background: var(--navy); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-mid); margin-bottom: 3px; }
.contact-item-value { font-size: 0.95rem; font-weight: 500; color: var(--navy); }
.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; box-shadow: var(--shadow); }
.form-title { font-size: 1.4rem; color: var(--navy); text-transform: uppercase; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--grey-light); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; color: var(--text-dark); background: var(--white); transition: border-color var(--transition); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; justify-content: center; }

/* ================================================
   FOOTER
   ================================================ */
#site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand-desc { font-size: 0.875rem; line-height: 1.7; max-width: 300px; margin-bottom: 28px; }
.footer-social { display: flex; gap: 12px; }
.social-link { width: 38px; height: 38px; background: rgba(255,255,255,0.07); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: var(--transition); }
.social-link:hover { background: var(--red); color: var(--white); }
.social-link svg { width: 16px; height: 16px; }
.footer-col-title { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ================================================
   INNER PAGES (banner + prose + sidebar + CTA)
   ================================================ */
.page-header { position: relative; background: var(--navy-deep); padding: 140px 0 56px; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 75% 30%, rgba(27,45,107,0.65) 0%, transparent 70%), linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 100%); }
.page-header-bg::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-header-accent { position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent); }
.page-header-inner { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; margin-bottom: 18px; color: rgba(255,255,255,0.45); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span:last-child { color: var(--red-light); font-weight: 500; }
.page-header-title { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); text-transform: uppercase; font-weight: 800; line-height: 1.05; max-width: 800px; }
.page-header-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.page-header-date { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.page-body { background: var(--white); padding: 72px 0; }
.page-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 64px; align-items: start; }

/* Prose */
.qts-prose { font-size: 1.05rem; line-height: 1.85; color: var(--grey-text); max-width: 720px; }
.qts-prose > *:first-child { margin-top: 0; }
.qts-prose p { margin-bottom: 24px; }
.qts-prose h2 { font-size: 1.8rem; color: var(--navy); text-transform: uppercase; margin: 48px 0 18px; padding-top: 8px; }
.qts-prose h3 { font-size: 1.35rem; color: var(--navy); margin: 36px 0 14px; }
.qts-prose h2 + p, .qts-prose h3 + p { margin-top: 0; }
.qts-prose ul, .qts-prose ol { margin: 0 0 24px 0; padding-left: 0; }
.qts-prose ul li, .qts-prose ol li { position: relative; padding-left: 30px; margin-bottom: 12px; list-style: none; }
.qts-prose ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.qts-prose ol { counter-reset: qts-counter; }
.qts-prose ol li { counter-increment: qts-counter; }
.qts-prose ol li::before { content: counter(qts-counter); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--navy); color: #fff; border-radius: 50%; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qts-prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qts-prose img { border-radius: var(--radius-lg); margin: 32px 0; width: 100%; box-shadow: var(--shadow); }
.qts-prose .wp-block-image { margin: 32px 0; }
.qts-prose blockquote { border-left: 4px solid var(--red); padding: 8px 0 8px 24px; margin: 32px 0; font-size: 1.2rem; color: var(--navy); font-style: italic; }
.qts-prose strong { color: var(--text-dark); }

.single-featured { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/9; box-shadow: var(--shadow); }
.single-featured img { width: 100%; height: 100%; object-fit: cover; }
.single-back { margin-top: 48px; }

/* Sidebar */
.page-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--offwhite); border: 1px solid var(--grey-light); border-radius: var(--radius-lg); padding: 28px 24px; }
.sidebar-cta { background: var(--navy); border: none; color: #fff; }
.sidebar-cta h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; line-height: 1.6; }
.sidebar-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: #fff; font-family: var(--font-display); }
.sidebar-phone svg { color: var(--red-light); }
.sidebar-card-title { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; font-size: 0.9rem; font-weight: 500; color: var(--navy); border-radius: var(--radius); transition: var(--transition); }
.sidebar-links a svg { opacity: 0; transform: translateX(-4px); transition: var(--transition); flex-shrink: 0; color: var(--red); }
.sidebar-links a:hover { background: var(--white); color: var(--red); }
.sidebar-links a:hover svg { opacity: 1; transform: translateX(0); }
.sidebar-links a.active { background: var(--navy); color: #fff; }
.sidebar-links a.active svg { opacity: 1; transform: translateX(0); color: #fff; }

/* CTA band */
.page-cta-band { background: var(--navy-deep); padding: 64px 0; position: relative; overflow: hidden; }
.page-cta-band::before { content: ''; position: absolute; right: 0; top: 0; width: 40%; height: 100%; background: linear-gradient(135deg, transparent, rgba(185,28,28,0.1)); }
.page-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; text-transform: uppercase; margin-bottom: 8px; }
.page-cta-inner p { color: rgba(255,255,255,0.6); font-size: 1.02rem; }
.page-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 40px; }
  .page-sidebar { position: static; flex-direction: column; }
  .qts-prose { max-width: 100%; }
  .page-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadein-up { animation: fadeInUp 0.7s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.36s; }
.anim-delay-4 { animation-delay: 0.5s; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================================================
   MOBILE NAV
   ================================================ */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--navy-deep); z-index: 999; overflow-y: auto; padding: 100px 24px 40px; flex-direction: column; gap: 8px; }
.mobile-nav.open { display: flex; }
.mobile-nav-logo { height: 36px; width: auto; position: absolute; top: 28px; left: 24px; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.15rem; font-weight: 600; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a:hover { color: var(--white); }
.mobile-nav a.mobile-nav-sub { font-size: 1rem; font-weight: 500; padding-left: 16px; color: rgba(255,255,255,0.6); }
.mobile-nav a.mobile-nav-sub:hover { color: rgba(255,255,255,0.9); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .nav-menu, .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  /* Hero: stats bar leaves absolute flow so it stacks below content on mobile */
  #hero { min-height: 0; display: block; padding-bottom: 0; }
  .hero-content { padding: 120px 0 56px; }
  .hero-stats { position: static; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-eyebrow .eyebrow { display: block; max-width: 220px; }

  .contact-grid { grid-template-columns: 1fr; }
  .careers-inner { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .industries-grid { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
