/* ═══════════════════════════════════════════════════════════════
   TRIMBLE BRAND THEME
   Aligned to Trimble Modus Design System + trimble.com visual language
   Source: trimble-website-style-guide.md | modus.trimble.com
   Version: 1.0 | 2026-03-11
   Usage: Link this file from any Trimble-adjacent project page.
═══════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Brand colors */
  --t-blue:           #0063A3;   /* Trimble Blue — primary CTAs, links, highlights */
  --t-blue-dark:      #004F83;   /* Hover/pressed state */
  --t-blue-active:    #217CBB;   /* Interactive state */
  --t-blue-selected:  #DCEDF9;   /* Pale blue — hover bg, selected state */
  --t-yellow:         #FBAD26;   /* Accent only — tags, data highlights, emphasis */
  --t-yellow-dark:    #E49325;   /* Warning / yellow hover */

  /* Neutral grays (Modus scale) */
  --t-gray:           #252A2E;   /* Primary text, dark surfaces */
  --t-gray-9:         #353A40;
  --t-gray-8:         #464B52;
  --t-gray-7:         #585C65;
  --t-gray-6:         #6A6E79;   /* Secondary text, muted copy */
  --t-gray-5:         #7D808D;
  --t-gray-4:         #90939F;
  --t-gray-3:         #A3A6B1;
  --t-gray-2:         #B7B9C3;
  --t-gray-1:         #CBCDD6;   /* Borders */
  --t-gray-0:         #E0E1E9;   /* Subtle borders */
  --t-gray-light:     #F1F1F6;   /* Subtle backgrounds */
  --t-white:          #FFFFFF;

  /* Functional colors */
  --t-success:        #006638;
  --t-warning:        #E49325;
  --t-danger:         #DA212C;

  /* Typography */
  --t-font:           "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing (Modus scale) */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  48px;
  --sp-6:  64px;
  --sp-7:  96px;
  --sp-8: 120px;

  /* Radii */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-xl:  0 16px 40px rgba(0, 0, 0, 0.12);

  /* Borders */
  --border:       1px solid var(--t-gray-0);
  --border-muted: 1px solid var(--t-gray-1);

  /* Transitions */
  --ease: 0.18s ease;
}


/* ── 2. BASE RESET ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--t-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t-gray);
  background: var(--t-white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--t-font);
  cursor: pointer;
  border: none;
  background: none;
}


/* ── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--t-font);
  color: var(--t-gray);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--t-gray);
  margin-bottom: var(--sp-3);
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--t-blue);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover, a:focus {
  color: var(--t-blue-dark);
  text-decoration: underline;
}

strong { font-weight: 600; }
em { font-style: italic; }

.text-muted  { color: var(--t-gray-6); }
.text-small  { font-size: 0.875rem; }
.text-center { text-align: center; }
.text-lead   { font-size: 1.125rem; line-height: 1.6; color: var(--t-gray-7); }


/* ── 4. LAYOUT ─────────────────────────────────────────────── */
.t-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.t-section {
  padding: var(--sp-6) 0;
}
.t-section--subtle {
  background: var(--t-gray-light);
}
.t-section--dark {
  background: var(--t-gray);
  color: var(--t-white);
}
.t-section--dark h1,
.t-section--dark h2,
.t-section--dark h3,
.t-section--dark p {
  color: var(--t-white);
}

.t-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-blue);
  margin-bottom: var(--sp-2);
}

.t-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--t-gray);
  margin-bottom: var(--sp-4);
}

.t-grid {
  display: grid;
  gap: var(--sp-4);
}
.t-grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.t-grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.t-grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.t-divider {
  border: none;
  border-top: var(--border);
  margin: 0;
}


/* ── 5. HEADER / HERO ──────────────────────────────────────── */
.t-header {
  background: linear-gradient(135deg, var(--t-blue-dark) 0%, var(--t-blue) 60%, var(--t-blue-active) 100%);
  color: var(--t-white);
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
  text-align: center;
}

.t-header h1 {
  color: var(--t-white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.t-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  max-width: 560px;
  margin: 0 auto var(--sp-4);
}

.t-header-inner {
  max-width: 760px;
  margin: 0 auto;
}


/* ── 6. BADGE / CHIP ───────────────────────────────────────── */
.t-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  padding: 5px 16px;
  color: var(--t-white);
  margin-bottom: var(--sp-3);
}

.t-badge--blue {
  background: var(--t-blue-selected);
  border: 1px solid var(--t-blue);
  color: var(--t-blue-dark);
}

.t-badge--yellow {
  background: var(--t-yellow);
  border: 1px solid var(--t-yellow-dark);
  color: var(--t-gray);
}

/* Capability chips (shown in header, above the fold) */
.t-caps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-3);
}

.t-cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  white-space: nowrap;
}
.t-cap-chip .icon {
  font-size: 14px;
  opacity: 0.9;
}


/* ── 7. CAPABILITY STRIP ───────────────────────────────────── */
/* Horizontal band between header and main content */
.t-cap-strip {
  background: var(--t-white);
  border-bottom: var(--border);
  padding: var(--sp-4) var(--sp-4);
}
.t-cap-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-3);
}
.t-cap-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--t-gray);
}
.t-cap-item .t-cap-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--t-blue-selected);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--t-blue);
  font-size: 18px;
}
.t-cap-item span.label {
  line-height: 1.3;
}
.t-cap-item span.sublabel {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--t-gray-6);
  display: block;
}


/* ── 8. BUTTONS ────────────────────────────────────────────── */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--t-font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 0.625rem 1.125rem;
  transition: background var(--ease), border-color var(--ease), transform 0.1s ease, box-shadow var(--ease);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.t-btn:hover { text-decoration: none; }

.t-btn--primary {
  background: var(--t-blue);
  color: var(--t-white);
  border-color: var(--t-blue);
}
.t-btn--primary:hover {
  background: var(--t-blue-dark);
  border-color: var(--t-blue-dark);
  color: var(--t-white);
}

.t-btn--secondary {
  background: var(--t-white);
  color: var(--t-blue);
  border-color: var(--t-blue);
}
.t-btn--secondary:hover {
  background: var(--t-blue-selected);
  color: var(--t-blue-dark);
}

.t-btn--ghost {
  background: transparent;
  color: var(--t-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.t-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--t-white);
}

.t-btn--sm {
  font-size: 0.8125rem;
  padding: 0.4375rem 0.875rem;
}


/* ── 9. CARDS ──────────────────────────────────────────────── */
.t-card {
  background: var(--t-white);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}
.t-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.t-card-accent {
  height: 4px;
  flex-shrink: 0;
}

.t-card-body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.t-card-icon {
  margin-bottom: var(--sp-3);
  line-height: 1;
  color: var(--t-blue);
  font-size: 28px;
}

.t-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--t-gray);
  margin-bottom: var(--sp-2);
}

.t-card-desc {
  font-size: 0.8125rem;
  color: var(--t-gray-6);
  flex: 1;
  margin-bottom: var(--sp-3);
  line-height: 1.6;
}

.t-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}

.t-skill-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t-blue);
  background: var(--t-blue-selected);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}


/* ── 10. ACCORDION ─────────────────────────────────────────── */
.t-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

details.t-detail {
  background: var(--t-white);
  border: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--ease);
}
details.t-detail:hover {
  box-shadow: var(--shadow-md);
}
details.t-detail[open] {
  box-shadow: var(--shadow-md);
}

summary.t-summary {
  padding: 18px var(--sp-4);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--t-gray);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  user-select: none;
}
summary.t-summary::-webkit-details-marker { display: none; }

.t-summary-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.t-summary-icon {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--t-gray-5);
  font-size: 20px;
}

details.t-detail[open] summary.t-summary {
  border-bottom: var(--border);
  color: var(--t-blue);
}
details.t-detail[open] .t-summary-icon {
  color: var(--t-blue);
}

.t-chevron {
  width: 18px;
  height: 18px;
  color: var(--t-gray-4);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.t-detail[open] .t-chevron {
  transform: rotate(180deg);
}

.t-accordion-body {
  padding: var(--sp-4);
}
.t-accordion-body p {
  font-size: 0.875rem;
  color: var(--t-gray);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}
.t-accordion-body p:last-child { margin-bottom: 0; }


/* ── 11. CONTENT HELPERS ───────────────────────────────────── */

/* Steps list */
.t-steps { display: flex; flex-direction: column; gap: var(--sp-3); }
.t-step { display: flex; gap: var(--sp-3); align-items: flex-start; }
.t-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--t-blue);
  color: var(--t-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.t-step-text {
  font-size: 0.875rem;
  color: var(--t-gray);
  line-height: 1.65;
}
.t-step-text strong { color: var(--t-blue); font-weight: 600; }

/* Use / Do-Don't grid */
.t-use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 540px) { .t-use-grid { grid-template-columns: 1fr; } }

.t-use-box {
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
}
.t-use-box--yes { background: #EFF8F3; border: 1px solid #A3D5BE; }
.t-use-box--no  { background: #FDF3F3; border: 1px solid #E8BCBC; }

.t-use-box h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.t-use-box--yes h4 { color: var(--t-success); }
.t-use-box--no  h4 { color: var(--t-danger); }

.t-use-box ul { list-style: none; padding: 0; }
.t-use-box ul li {
  font-size: 0.8125rem;
  color: var(--t-gray);
  padding: 3px 0;
  line-height: 1.55;
}
.t-use-box--yes li::before { content: "✓  "; color: var(--t-success); font-weight: 700; }
.t-use-box--no  li::before { content: "✗  "; color: var(--t-danger); font-weight: 700; }

/* Prompt cards */
.t-prompts { display: flex; flex-direction: column; gap: var(--sp-2); }
.t-prompt-card {
  background: var(--t-gray-light);
  border: var(--border);
  border-left: 3px solid var(--t-blue);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-3);
}
.t-prompt-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-blue);
  margin-bottom: 4px;
}
.t-prompt-text {
  font-size: 0.8125rem;
  color: var(--t-gray);
  font-style: italic;
  line-height: 1.6;
}

/* Tips */
.t-tips { display: flex; flex-direction: column; gap: var(--sp-2); }
.t-tip {
  display: flex;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--t-gray);
  align-items: flex-start;
}
.t-tip-bullet {
  color: var(--t-blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ── 12. FOOTER ────────────────────────────────────────────── */
.t-footer {
  background: var(--t-gray-light);
  border-top: var(--border);
  text-align: center;
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  font-size: 0.8125rem;
  color: var(--t-gray-6);
}
.t-footer a {
  color: var(--t-blue);
  font-weight: 600;
  text-underline-offset: 3px;
}
.t-footer a:hover { text-decoration: underline; }


/* ── 13. MATERIAL SYMBOLS (if used) ────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
}


/* ── 14. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .t-header {
    padding: var(--sp-6) var(--sp-3) var(--sp-5);
  }
  .t-section { padding: var(--sp-5) 0; }
  .t-cap-strip-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .t-cap-strip-inner { grid-template-columns: 1fr; }
  .t-caps { gap: var(--sp-1); }
  .t-cap-chip { font-size: 0.75rem; padding: 4px 10px; }
}
