/* Teimetra — Site Stylesheet
   Brand: Navy #071E3F · Orange #FF4201 · White #FFFFFF
   ------------------------------------------------------------------ */

:root {
  --navy: #071E3F;
  --navy-dark: #0B1830;
  --navy-soft: #0E2C57;
  --orange: #FF4201;
  --orange-dark: #D13000;
  --orange-darker: #A82600;
  --white: #FFFFFF;
  --grey-900: #12161C;
  --grey-700: #3D4552;
  --grey-500: #5B6472;
  --grey-300: #B9C0CB;
  --grey-100: #F2F4F7;
  --grey-50: #FAFBFC;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(7, 30, 63, 0.08);
  --shadow-lg: 0 12px 40px rgba(7, 30, 63, 0.16);
  --max-width: 1160px;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.14; margin: 0 0 0.6em;
  color: var(--navy); letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1.1em; color: var(--grey-700); max-width: 68ch; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.text-center { text-align: center; }
.muted { color: var(--grey-500); }
.eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lede { font-size: 1.15rem; color: var(--grey-700); max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--orange-dark); color: var(--white); }
.btn-primary:hover { background: var(--orange-darker); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* Header / Nav */
header.site-header {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  max-width: 1340px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img { height: 36px; width: 36px; border-radius: 6px; }
.brand span { color: var(--white); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
nav.main-nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
nav.main-nav a { color: var(--grey-300); font-weight: 600; font-size: 0.86rem; white-space: nowrap; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--white); }
.nav-mobile-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn-primary { white-space: nowrap; padding: 12px 20px; font-size: 0.9rem; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer; padding: 4px;
}
.lang-switch {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); font-family: var(--font); font-weight: 600; font-size: 0.78rem;
  padding: 6px 8px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
}
.lang-switch option { color: var(--grey-900); }

@media (max-width: 1180px) {
  nav.main-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; padding: 28px 24px;
    gap: 4px; transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1rem; }
  .nav-mobile-cta { display: inline-flex; margin-top: 18px; width: 100%; justify-content: center; border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 480px) {
  .brand span { font-size: 0.95rem; }
}

/* Breadcrumb */
.breadcrumb { background: var(--grey-100); padding: 14px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 0.85rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--grey-300); }
.breadcrumb a { color: var(--grey-500); }
.breadcrumb li:last-child { color: var(--navy); font-weight: 600; }

/* Hero */
.hero {
  background: radial-gradient(1100px 500px at 15% -10%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white); padding: 84px 0 76px;
}
.hero h1 { color: var(--white); max-width: 820px; }
.hero p.lede { color: var(--grey-300); }
.hero-badge {
  display: inline-block; background: rgba(255,66,1,0.14); border: 1px solid rgba(255,66,1,0.4);
  color: #FF8A5C; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white); padding: 56px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: var(--grey-300); margin-bottom: 0; max-width: 760px; }

/* Hero art (procedural brand imagery) */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy p { max-width: 640px; }
.hero-art-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 4 / 3; background: var(--navy-dark);
}
.hero-art-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Layout variety modifiers so hero art doesn't read as one repeated block down the site */
.hero-grid.reverse .hero-art-frame { order: 1; }
.hero-grid.reverse .hero-copy { order: 2; }
.hero-grid.size-wide { grid-template-columns: 0.95fr 1.05fr; }
.hero-grid.size-narrow { grid-template-columns: 1.35fr 0.65fr; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-art-frame { order: -1; max-height: 240px; }
  .hero-grid.reverse .hero-art-frame { order: -1; }
  .hero-grid.reverse .hero-copy { order: 2; }
}

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.stat-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 22px;
}
.stat-card .num { color: var(--orange); font-weight: 800; font-size: 1.9rem; display: block; margin-bottom: 6px; }
.stat-card .label { color: var(--grey-300); font-size: 0.92rem; }
.stat-grid.light .stat-card { background: var(--grey-50); border: 1px solid var(--grey-100); }
.stat-grid.light .num { color: var(--orange); }
.stat-grid.light .label { color: var(--grey-700); }

/* Method steps */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 36px; counter-reset: step; }
.method-step {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); position: relative;
}
.method-step .step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.method-step h3 { margin-bottom: 8px; }
.method-step p { margin-bottom: 0; font-size: 0.95rem; }

/* Cards / grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 36px; }
.card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 12px; }
.card .tag {
  display: inline-block; background: rgba(255,66,1,0.1); color: var(--orange-darker);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.card a.card-link { font-weight: 700; font-size: 0.9rem; }

/* Sections with alt background */
.section-alt { background: var(--grey-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--grey-300); }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
table.data-table th, table.data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--grey-100); font-size: 0.94rem; }
table.data-table th { background: var(--navy); color: var(--white); font-weight: 700; white-space: nowrap; }
table.data-table tr:nth-child(even) td { background: var(--grey-50); }
table.data-table td strong { color: var(--navy); }

/* FAQ accordion */
.faq-list { margin-top: 30px; border-top: 1px solid var(--grey-100); }
.faq-item { border-bottom: 1px solid var(--grey-100); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--orange-dark); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--grey-700); max-width: 760px; }

/* Comparison / Why table emphasis */
table.compare-table td.yes { color: #1a7f3c; font-weight: 700; }
table.compare-table td.brand-col { background: rgba(255,66,1,0.06); font-weight: 700; }

/* Quote / callout */
.callout {
  border-left: 4px solid var(--orange); background: var(--grey-50); padding: 20px 24px;
  border-radius: 0 8px 8px 0; margin: 28px 0; font-style: italic; color: var(--grey-700);
}
/* Links inline within prose must not rely on color alone to be
   distinguishable (WCAG 1.4.1) — underline them. Nav, buttons, and card
   links are already distinguishable by position/styling, so this is
   scoped to running text only. */
.callout a, main p a, main li a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--grey-300); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .cta-row { justify-content: center; }

/* Forms */
form.inquiry-form { display: grid; gap: 18px; margin-top: 32px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-300); border-radius: 8px;
  font-family: var(--font); font-size: 0.96rem; background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.checkbox-row { display: flex; flex-direction: column; gap: 10px; }
.checkbox-row label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 0.92rem; color: var(--grey-700); }
.form-note { font-size: 0.82rem; color: var(--grey-500); margin-top: -6px; }
#success-message { display: none; background: #E9F7EF; border: 1px solid #B7E4C7; color: #1a7f3c; padding: 16px 20px; border-radius: 8px; font-weight: 600; }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: var(--grey-300); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid .footer-col-title {
  color: var(--white); font-family: var(--font-display); font-size: 0.92rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--grey-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand p { color: var(--grey-300); font-size: 0.9rem; max-width: 320px; }
.footer-logo-wide { width: 200px; height: auto; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; font-size: 0.82rem; color: var(--grey-300);
}
.footer-legal { display: flex; gap: 8px; }
.footer-legal a { color: var(--grey-300); font-size: 0.82rem; }
.footer-legal a:hover { color: var(--orange); }
.footer-legal a:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--grey-500); }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.8rem; font-weight: 700;
}
.social-row a:hover { background: var(--orange); }

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  background: var(--grey-100); color: var(--navy); font-weight: 700; font-size: 0.8rem;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--grey-300);
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--orange-dark); color: white; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }
