/* Site-wide spacing rhythm */
:root {
  --gt-space-section-y: clamp(56px, 7vw, 88px);
  --gt-space-section-head: clamp(28px, 4vw, 40px);
  --gt-space-grid: 20px;
  --gt-space-stack: 16px;
  --gt-space-inline: clamp(22px, 4vw, 48px);
}

/* Unified typography — one quiet, Apple-like system across every template. */
body.gt-body,
body.gt-body button,
body.gt-body input,
body.gt-body textarea,
body.gt-body select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.gt-body { font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: -0.012em; }

.gt-heading-xl { font-weight: 600; letter-spacing: -0.048em; line-height: 1.02; }
.gt-heading-lg { font-weight: 600; letter-spacing: -0.042em; line-height: 1.06; }
.gt-heading-md { font-weight: 600; letter-spacing: -0.034em; line-height: 1.12; }
.gt-heading-sm { font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }

.gt-text,
.gt-text-lead,
.gt-text-sm,
.gt-theme-card-text,
.gt-pillar-text,
.gt-portfolio-body p,
.gt-product-card-body p,
.gt-detail-prose p,
.gt-related-link span,
.gt-contact-info-text,
.gt-testimonial-card blockquote {
  font-weight: 400;
  letter-spacing: -0.012em;
}

.gt-text { font-size: 16px; line-height: 1.65; }
.gt-text-lead { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.58; }
.gt-text-sm { font-size: 13px; line-height: 1.55; }

.gt-eyebrow,
.gt-card-kicker,
.gt-form-label,
.gt-theme-card-tag,
.gt-pillar-label,
.gt-footer-contact-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.gt-theme-card-title,
.gt-product-card-body h2,
.gt-product-card-body h3,
.gt-portfolio-body h2,
.gt-outcome-card h3,
.gt-related-link strong,
.gt-contact-form-title {
  font-weight: 600;
  letter-spacing: -0.022em;
}

.gt-btn,
.gt-nav-links a,
.gt-nav-dropdown a,
.gt-theme-card-link,
.gt-pillar-link,
.gt-product-card-cta,
.gt-portfolio-cta,
.gt-related-link em {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Shared form color and interaction treatment. */
.gt-contact-form-panel .gt-form-label,
.gt-contact-form-wrap .gt-form-label { color: var(--gt-blue-900); }

.gt-contact-form-panel .gt-form-input,
.gt-contact-form-panel .gt-form-select,
.gt-contact-form-panel .gt-form-textarea,
.gt-contact-form-wrap .gt-form-input,
.gt-contact-form-wrap .gt-form-select,
.gt-contact-form-wrap .gt-form-textarea {
  background: var(--gt-white);
  border-color: var(--gt-blue-100);
  color: var(--gt-gray-800);
  box-shadow: 0 5px 16px rgba(4, 47, 105, .045);
}

.gt-contact-form-panel .gt-form-input:hover,
.gt-contact-form-panel .gt-form-select:hover,
.gt-contact-form-panel .gt-form-textarea:hover,
.gt-contact-form-wrap .gt-form-input:hover,
.gt-contact-form-wrap .gt-form-select:hover,
.gt-contact-form-wrap .gt-form-textarea:hover { border-color: var(--gt-blue-400); }

.gt-contact-form-panel .gt-form-input:focus,
.gt-contact-form-panel .gt-form-select:focus,
.gt-contact-form-panel .gt-form-textarea:focus,
.gt-contact-form-wrap .gt-form-input:focus,
.gt-contact-form-wrap .gt-form-select:focus,
.gt-contact-form-wrap .gt-form-textarea:focus {
  border-color: var(--gt-blue-600);
  box-shadow: 0 0 0 3px rgba(37, 95, 218, .12);
}

.gt-contact-form-panel .gt-contact-submit,
.gt-contact-form-wrap button[type="submit"] {
  background: var(--gt-indigo);
  border-bottom: 3px solid var(--gt-navy);
}

.gt-section-pad {
  padding: var(--gt-space-section-y) 0;
}

.gt-section-head {
  max-width: 640px;
  margin: 0 auto var(--gt-space-section-head);
  text-align: center;
}

.gt-section-head .gt-text {
  margin-top: 12px;
}

/* Card grids — consistent gaps */
.gt-grid-2,
.gt-grid-3,
.gt-grid-4,
.gt-timeline-grid,
.gt-about-industry-grid {
  gap: var(--gt-space-grid);
}

/* Sections that reset head margin — remove overrides */
#gt-sec-flip-cards .gt-section-head,
#gt-sec-services .gt-services-header,
#gt-sec-why .gt-why-header,
#gt-sec-engage .gt-engage-header,
#gt-sec-capabilities .gt-cap-header,
.gt-timeline-compact .gt-timeline-header {
  margin-bottom: clamp(36px, 5vw, 52px);
}

/* Flip cards — header in container, carousel full-bleed */
.gt-flip-section {
  padding-top: var(--gt-space-section-y);
  padding-bottom: var(--gt-space-section-y);
}

.gt-flip-section .gt-section-head {
  margin-bottom: var(--gt-space-section-head);
}

.gt-flip-carousel-outer {
  padding: 0;
  width: 100vw;
  max-width: 100%;
  margin-left: 0;
}

/* Hero — deliberate breathing room around the primary statement */
#gt-sec-hero .gt-hero-content {
  padding: calc(var(--gt-nav-h) + 64px) var(--gt-space-inline) 76px;
}

#gt-sec-hero-band {
  margin-top: 0;
}

/* Newsletter — match section rhythm */
.gt-newsletter-section {
  padding: var(--gt-space-section-y) 0;
}

/* Platform — tighter two-column */
.gt-platform-grid {
  gap: clamp(32px, 5vw, 48px);
}

/* Page hero (about, etc.) */
.gt-page-hero {
  padding: calc(var(--gt-nav-h) + 40px) 0 var(--gt-space-section-y);
}

/* Adjacent sections — avoid double borders */
.gt-section-alt + .gt-section-alt,
.gt-bg-surface + .gt-bg-surface {
  border-top: none;
}

.gt-hscroll-dots {
  margin-top: var(--gt-space-stack, 16px);
}

@media (max-width: 768px) {
  :root {
    --gt-space-section-y: 48px;
    --gt-space-section-head: 24px;
    --gt-space-grid: 14px;
  }

  .gt-section-head,
  #gt-sec-services .gt-services-header,
  #gt-sec-why .gt-why-header,
  #gt-sec-engage .gt-engage-header {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .gt-timeline-compact .gt-timeline-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #gt-sec-hero .gt-hero-content {
    padding: calc(var(--gt-nav-h) + 54px) 16px 120px;
    min-height: 92svh;
  }
}
