/* Local extras on top of the extracted Elementor/Hello CSS. */

/* ---------- iTRACE Technologies contact footer (used on every public page) ---------- */
#contact.section-dark,
footer.site-footer {
  --ink: #0A1F33;
  --accent: #ff9100;
  --accent-deep: #cc7400;
  --on-dark: #EAF2F8;
  --on-dark-mut: #9DB4C6;
  --font-display: "Teachers", system-ui, sans-serif;
  --font-body: "Teachers", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1160px;
  --radius: 4px;
}

#contact.section {
  padding: 72px 0;
  box-sizing: border-box;
}
#contact.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}
#contact .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
#contact .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
#contact .section-title.on-dark { color: #fff; }
#contact .dark-lede {
  font-family: var(--font-body);
  font-size: calc(1.15rem + 1pt);
  color: var(--on-dark-mut);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}
#contact .contact-form { display: grid; gap: 18px; }
#contact .field { display: grid; gap: 7px; }
#contact .field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
#contact .field input,
#contact .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 13px 15px;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
  box-sizing: border-box;
  width: 100%;
}
#contact .field input:focus,
#contact .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,145,0,0.08);
}
#contact .form-status {
  font-family: var(--font-mono);
  font-size: calc(0.85rem + 1pt);
  margin: 4px 0 0;
  color: var(--accent);
  min-height: 1em;
}
#contact .contact-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#contact .recaptcha-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
#contact .recaptcha-note a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}
#contact .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
#contact .btn-primary {
  background: var(--accent);
  color: #04252a;
  border-color: var(--accent);
}
#contact .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
#contact .btn-block { width: 100%; }
#contact .btn:active { transform: translateY(1px); }
#contact .contact-form .btn[disabled] { opacity: 0.65; cursor: wait; }

footer.site-footer {
  position: relative;
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #061422;
  color: var(--on-dark-mut, #9DB4C6);
  padding: 14px 0 !important;
  text-align: center;
  box-sizing: border-box;
}
footer.site-footer .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
}
footer.site-footer .footer-admin {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--on-dark-mut, #9DB4C6);
  text-decoration: none;
  opacity: 0.65;
  transition: color .2s ease, opacity .2s ease;
}
footer.site-footer .footer-admin:hover {
  color: var(--accent, #ff9100);
  opacity: 1;
}
footer.site-footer .footer-copy {
  margin: 0;
  font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: calc(0.8rem + 1pt);
  letter-spacing: 0.02em;
  color: inherit;
}

@media (max-width: 860px) {
  #contact .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  footer.site-footer .footer-admin {
    position: static;
    display: inline-block;
    transform: none;
    margin: 8px 0 0;
  }
}

/* Resources: center Case Studies + News in the section; titles centered, body left. */
.elementor-element-4655f3f5 {
  --justify-content: center !important;
}
.elementor-element-4655f3f5 > .e-con-inner {
  justify-content: center !important;
}
.elementor-element-709993d5,
.elementor-element-67d1dac3 {
  display: none !important;
}
.elementor-element-3ae6009d,
.elementor-element-57375006 {
  --width: 40% !important;
  width: 40% !important;
  max-width: 560px;
}
.elementor-element-4655f3f5 .elementor-widget-heading,
.elementor-element-4655f3f5 .elementor-heading-title {
  width: 100%;
  text-align: center !important;
}
.elementor-element-4655f3f5 .elementor-widget-text-editor,
.elementor-element-4655f3f5 .elementor-widget-text-editor p {
  text-align: left !important;
}
@media (max-width: 860px) {
  .elementor-element-3ae6009d,
  .elementor-element-57375006 {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.e-font-icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
html {
  scroll-behavior: smooth;
}

/* Case study pages + admin preview (pageShell / preview.html). Scoped so
   the Elementor homepage is unchanged. */
.cs-page {
  --ink: #0A1F33;
  --accent: #ff9100;
  --accent-deep: #cc7400;
  --line: #E1E9F1;
  --muted: #5a6b7b;
  --font-display: "Teachers", system-ui, sans-serif;
  --font-body: "Teachers", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1160px;
  --radius: 4px;
  --header-h: 88px;
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
.cs-page * { box-sizing: border-box; }
.cs-page a { color: inherit; text-decoration: none; }
.cs-page .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.cs-page .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cs-page .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}
.cs-page .brand-logo { height: 48px; width: auto; max-width: 60vw; }
.cs-page .site-nav { display: flex; align-items: center; gap: 16px; }
.cs-page .site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.cs-page .site-nav a:hover { color: var(--accent-deep); }
.cs-page .nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}
.cs-page .nav-cta:hover { background: var(--accent-deep); }
.cs-page .nav-toggle { display: none; }
.cs-page .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 44px 0 80px;
}
.cs-page .case-card {
  display: block;
  width: 375px;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}
.cs-page .case-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}
.cs-page .case-caption {
  margin: 14px 4px 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(0.95rem + 1pt);
  line-height: 1.35;
}
.cs-page .cs-head { max-width: 880px; margin: 0 auto 40px; padding-top: 40px; text-align: left; }
.cs-page .cs-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 10px;
}
.cs-page .cs-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.cs-page .cs-summary { font-size: calc(1.1rem + 1pt); color: var(--muted); margin: 0; max-width: 880px; }
.cs-page .cs-hero-img { display: block; width: 100%; height: auto; margin: 0 auto 8px; }
.cs-page .cs-body { max-width: 880px; margin: 48px auto 0; }
.cs-page .cs-body > * { margin: 0 0 22px; }
.cs-page .cs-body h2, .cs-page .cs-body h3, .cs-page .cs-body h4 { font-family: var(--font-display); color: var(--ink); }
.cs-page .cs-body p { font-size: calc(1rem + 1pt); line-height: 1.7; }
.cs-page .cs-body ul, .cs-page .cs-body ol { padding-left: 22px; }
.cs-page .cs-body li { font-size: calc(1rem + 1pt); line-height: 1.6; margin-bottom: 8px; }
.cs-page .cs-body ul.cs-list-hyphen { list-style: none; padding-left: 22px; }
.cs-page .cs-body ul.cs-list-hyphen > li { position: relative; }
.cs-page .cs-body ul.cs-list-hyphen > li::before { content: "–"; position: absolute; left: -16px; }
.cs-page .cs-body .cs-sublist { list-style: circle; margin: 8px 0 0; padding-left: 22px; }
.cs-page .cs-hr { width: 100%; margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.cs-page .cs-figure { margin: 32px 0; }
.cs-page .cs-figure img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.cs-page .cs-figure figcaption { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.cs-page .cs-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.cs-page .cs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-page .cs-quote { font-size: 1.15rem; border-left: 3px solid var(--accent); padding-left: 16px; margin: 24px 0; }
.cs-page .cs-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.cs-page .cs-back { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-family: var(--font-display); font-weight: 500; color: var(--accent-deep); }
.cs-page .cs-back:hover { color: var(--accent); }
.cs-page .cs-back-wrap { max-width: 880px; margin: 56px auto 80px; }
.cs-page .cs-notfound { text-align: center; padding: 80px 0; }
.cs-page .cs-loading { text-align: center; padding: 90px 0; color: var(--muted); font-family: var(--font-mono); }
@media (max-width: 860px) {
  .cs-page .cs-head { padding-top: 24px; }
  .cs-page .case-card { width: 100%; }
}
