/* ========================================
   KINTRACE WEBSITE - GLOBAL STYLES
   ======================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: white;
  color: #171717;
  line-height: 1.5;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

nav > div {
  max-width: 1024px;
  margin: 0 auto;
}

nav > div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #104066;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links button {
  background: none;
  border: none;
  font-size: 14px;
  color: #525252;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  transition: color 0.2s;
}

.nav-links button:hover {
  color: #104066;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 51;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #104066;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 48;
}

.mobile-menu-overlay.active {
  display: block;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-ghost {
  background: #f5f5f5;
  color: #104066;
}

.btn-ghost:hover {
  background: #e5e5e5;
}

.btn-primary {
  background: #104066;
  color: white;
}

.btn-primary:hover {
  background: #0d3554;
}

.btn-primary-outline {
  background: #104066;
  color: white;
  border: 2px solid white;
}

.btn-primary-outline:hover {
  background: white;
  color: #104066;
}

.btn-light {
  background: rgba(16,64,102,0.05);
  color: #104066;
}

.btn-light:hover {
  background: rgba(16,64,102,0.1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 128px 24px 80px;
}

.hero-gradient {
  background: linear-gradient(135deg, #104066 0%, #1a5a8a 50%, #104066 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1024px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1.white-text {
  color: white;
}

.hero h1.dark-text {
  color: #171717;
}

.hero p {
  font-size: clamp(18px, 2vw, 24px);
  margin: 24px 0 32px;
  max-width: 600px;
  line-height: 1.6;
}

.hero p.white-text {
  color: rgba(255,255,255,0.9);
}

.hero p.dark-text {
  color: #525252;
  max-width: 576px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 96px 24px;
  scroll-margin-top: 80px;
}

.section-content {
  max-width: 1024px;
  margin: 0 auto;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header Compact {
  max-width: 512px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: #171717;
  letter-spacing: -0.02em;
}

.section-header h2.white-text {
  color: white;
}

.section-header h2.size-32 {
  font-size: 32px;
}

.section-header h2.size-40 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-header p {
  font-size: 18px;
  color: #525252;
  margin-top: 16px;
}

.section-header p.white-text {
  color: rgba(255,255,255,0.7);
}

/* Section backgrounds */
.section-bg-white {
  background: white;
}

.section-bg-fafa {
  background: #fafafa;
}

.section-bg-gradient {
  background: linear-gradient(to bottom, #fafafa, #f0f9ff);
}

.section-bg-navy {
  background: #104066;
}

/* Section borders */
.section-border {
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.section-padding-sm {
  padding: 24px;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
  padding: 64px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

.trust-content {
  max-width: 1024px;
  margin: 0 auto;
}

.trust-section p {
  text-align: center;
  font-size: 14px;
  color: #737373;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
}

.logo-scroll:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  width: 160px;
  height: 48px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #d4d4d4;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   GRID LAYOUTS
   ======================================== */
.grid,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-min-280 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-min-400 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.card-bg-fafa {
  background: #fafafa;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(16,64,102,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-circle {
  border-radius: 50%;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #104066;
  fill: none;
  stroke-width: 1.5;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: #525252;
  line-height: 1.6;
}

/* Client cards */
.client-card {
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  transition: border-color 0.2s;
}

.client-card:hover {
  border-color: rgba(16,64,102,0.3);
}

.client-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 16px;
}

.client-card p {
  font-size: 15px;
  color: #525252;
  margin-bottom: 24px;
  line-height: 1.6;
}

.client-card ul {
  list-style: none;
}

.client-card li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #525252;
  margin-bottom: 12px;
}

.client-card svg {
  width: 20px;
  height: 20px;
  stroke: #104066;
  flex-shrink: 0;
  fill: none;
  stroke-width: 2;
}

/* ========================================
   STEPS
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  text-align: center;
}

.step-num {
  width: 80px;
  height: 80px;
  background: #104066;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  box-sizing: border-box;
  flex-shrink: 0;
}

.step-num-small {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #104066;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   QUOTE SECTION
   ======================================== */
.quote-section {
  background: #104066;
  padding: 96px 24px;
}

.quote-content {
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.quote-content-sm {
  max-width: 700px;
  margin: 0 auto;
}

.quote-icon {
  width: 48px;
  height: 48px;
  fill: rgba(255,255,255,0.3);
  margin: 0 auto 32px;
}

blockquote {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.4;
}

blockquote.white-text {
  color: white;
}

blockquote.navy-text {
  color: #104066;
}

blockquote.size-30 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
}

.quote-large {
  font-size: 72px;
  color: rgba(16,64,102,0.15);
  line-height: 1;
  text-align: center;
  margin-bottom: 16px;
}

.quote-section p {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-top: 32px;
  font-size: 15px;
}

.quote-attribution {
  margin-top: 24px;
}

.quote-attribution p:first-child {
  color: rgba(26,26,46,0.7);
  font-weight: 500;
}

.quote-attribution p:last-child {
  color: rgba(26,26,46,0.5);
  font-size: 14px;
  margin-top: 4px;
}

/* ========================================
   APPROACH & FEATURE PILLS
   ======================================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 64px;
  align-items: center;
}

.list-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-pill {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.feature-pill-bg {
  background: rgba(16,64,102,0.05);
}

.feature-pill-neutral {
  background: #fafafa;
}

.feature-pill-navy {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-pill-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-pill-icon svg {
  width: 20px;
  height: 20px;
}

.feature-pill p:first-child {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.feature-pill p:last-child {
  font-size: 14px;
}

/* Feature pill color variants */
.feat-icon-navy {
  background: #104066;
}

.feat-icon-navy svg {
  stroke: white;
  fill: none;
}

.feat-icon-gray {
  background: #e5e5e5;
}

.feat-icon-gray svg {
  stroke: #525252;
  fill: none;
}

/* ========================================
   FORMS
   ======================================== */
.form-container {
  max-width: 750px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-centered-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.form-centered-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-centered-header h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.form-centered-header p {
  margin-top: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #171717;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #104066;
  box-shadow: 0 0 0 3px rgba(16,64,102,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-full-width {
  width: 100%;
}

.form-message {
  margin-top: 16px;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: #171717;
}

.contact-section p {
  font-size: 18px;
  color: #525252;
  margin-top: 16px;
}

.contact-box {
  background: #fafafa;
  padding: 32px;
  border-radius: 16px;
  margin-top: 48px;
}

.contact-box .grid-2 {
  text-align: left;
  margin-bottom: 32px;
}

.contact-box h4 {
  font-size: 15px;
  font-weight: 500;
  color: #171717;
  margin-bottom: 8px;
}

.contact-box p {
  font-size: 14px;
  color: #525252;
  margin-top: 0;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

footer > div {
  max-width: 1024px;
  margin: 0 auto;
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
}

.footer-links button,
.footer-links a {
  background: none;
  border: none;
  color: #737373;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.footer-links button:hover,
.footer-links a:hover {
  color: #104066;
}

.copyright {
  color: #a3a3a3;
  font-size: 14px;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #104066;
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 50;
}

#scroll-top:hover {
  background: #0d3554;
  transform: scale(1.1);
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-navy {
  color: #104066;
}

.text-white {
  color: white;
}

.text-dark {
  color: #171717;
}

.display-flex {
  display: flex;
}

.padding-32 {
  padding: 32px;
}

.text-gray {
  color: #525252;
}

.text-gray-700 {
  color: rgba(26,26,46,0.7);
}

.text-gray-light {
  color: rgba(255,255,255,0.7);
}

.text-gray-light {
  color: rgba(255,255,255,0.7);
}

.text-muted {
  color: #737373;
}

.font-weight-500 {
  font-weight: 500;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-bold {
  font-weight: bold;
}

.font-14 {
  font-size: 14px;
}

.text-center {
  text-align: center;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-768 {
  max-width: 768px;
}

.max-w-896 {
  max-width: 896px;
}

.margin-top-16 {
  margin-top: 16px;
}

.margin-top-24 {
  margin-top: 24px;
}

.margin-top-32 {
  margin-top: 32px;
}

.margin-top-40 {
  margin-top: 40px;
}

.margin-bottom-8 {
  margin-bottom: 8px;
}

.margin-bottom-12 {
  margin-bottom: 12px;
}

.margin-bottom-16 {
  margin-bottom: 16px;
}

.margin-bottom-24 {
  margin-bottom: 24px;
}

.padding-32 {
  padding: 32px;
}

.shadow-subtle {
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.border-subtle {
  border: 1px solid rgba(0,0,0,0.08);
}

.bg-white {
  background: white;
}

.bg-navy-transparent {
  background: rgba(255,255,255,0.05);
}

.display-none {
  display: none;
}

.border-subtle {
  border: 1px solid rgba(0,0,0,0.08);
}

/* Navy transparent border for cards on navy background */
.bg-navy-transparent.border-subtle {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}

/* FAQ Items */
.faq-item {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #fafafa;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
  margin: 0;
  flex: 1;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: #104066;
  border-radius: 2px;
}

.faq-toggle::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-item.active .faq-toggle::after {
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  font-size: 15px;
  color: #525252;
  line-height: 1.6;
  margin: 0;
  padding: 0 24px 24px 24px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 768px) {
  footer .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-right {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: flex;
  }

  nav > div > div {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links button {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    background: #f5f5f5;
  }

  .nav-links button:hover {
    background: #e5e5e5;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav-links .btn-ghost,
  .nav-links .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 96px 20px 64px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  .section {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 32px 24px;
  }

  .form-centered-header h2 {
    font-size: 28px;
  }

  /* Grids */
  .grid-3,
  .grid-2,
  .grid {
    grid-template-columns: 1fr;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
  }

  .grid-min-280,
  .grid-min-400 {
    grid-template-columns: 1fr;
  }

  /* Approach */
  .approach-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Contact Box */
  .contact-box .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .card {
    padding: 24px;
  }

  .card h3 {
    font-size: 18px;
  }

  /* Buttons */
  .btn-full-width {
    width: 100%;
  }

  /* Quote */
  blockquote {
    font-size: 20px !important;
  }

  /* Trust Section */
  .trust-section {
    padding: 32px 20px;
  }

  .logo-item {
    width: 120px;
    font-size: 12px;
  }

  /* Feature Pills */
  .feature-pill {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  /* Footer */
  footer .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-right {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
  }

  .copyright {
    display: block;
    font-size: 12px;
    text-align: right;
  }

  /* Scroll to top */
  #scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Step Numbers */
  .step-num {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  /* Quote attribution */
  .quote-attribution p {
    font-size: 14px;
  }
}
