/**
 * XEYROX — Company Page Stylesheet
 * Matching Figma reference designs in design-references/company/
 */

/* ==========================================================================
   GLOBAL UTILITIES & TYPOGRAPHY FOR COMPANY PAGE
   ========================================================================== */
.company-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #155EEF;
  margin-bottom: 14px;
}

.company-text-blue {
  color: #155EEF;
}

/* ==========================================================================
   SECTION 1 — HERO
   "Building practical systems for real business work."
   ========================================================================== */
.company-hero-section {
  position: relative;
  padding-top: 110px;
  padding-bottom: 140px;
  background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%);
  overflow: hidden;
  text-align: center;
}

.company-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
}

.company-hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0B1B3D;
  margin: 0 0 24px 0;
}

.company-hero-highlight {
  color: #155EEF;
}

.company-hero-body {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  color: #475467;
  max-width: 760px;
  margin: 0 auto 36px auto;
}

.company-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.company-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  background: linear-gradient(90deg, #155EEF 0%, #00C49F 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 6px 22px rgba(21, 94, 239, 0.32);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.company-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(21, 94, 239, 0.42);
  text-decoration: none !important;
}

.company-btn-primary .btn-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.company-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.company-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  background: #ffffff !important;
  color: #0B1B3D !important;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #D0D5DD;
  text-decoration: none !important;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.company-btn-secondary:hover {
  border-color: #98A2B3;
  background-color: #F8FAFC !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.company-btn-secondary .btn-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.company-btn-secondary:hover .btn-arrow {
  transform: translateX(4px);
}

.company-hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}

.company-hero-wave-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SECTION 2 — PURPOSE & MANIFESTO QUOTE
   "Make business complexity manageable."
   ========================================================================== */
.company-purpose-section {
  padding: 100px 0;
  background-color: #ffffff;
  position: relative;
}

.company-purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.company-purpose-left {
  max-width: 560px;
}

.company-purpose-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.25vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 20px 0;
}

.company-purpose-text {
  font-size: 17px;
  line-height: 1.65;
  color: #475467;
  margin: 0;
}

.company-purpose-right {
  display: flex;
  justify-content: center;
}

.company-quote-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 56px 40px;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(21, 94, 239, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-quote-ambient-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 50%, rgba(224, 242, 254, 0.45) 0%, rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

.company-quote-mark {
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
  color: #155EEF;
  display: block;
  font-weight: 700;
  user-select: none;
  position: relative;
  z-index: 1;
}

.company-quote-mark-open {
  margin-bottom: 12px;
}

.company-quote-mark-close {
  margin-top: 16px;
  margin-bottom: 20px;
}

.company-quote-body {
  font-family: var(--font-primary);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.48;
  color: #0B1B3D;
  max-width: 480px;
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  z-index: 1;
}

.company-quote-author {
  font-size: 14px;
  font-weight: 500;
  color: #667085;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SECTION 3 — OUR APPROACH (3 CARDS)
   "Useful technology starts with understanding the work."
   ========================================================================== */
.company-approach-section {
  padding: 100px 0;
  background-color: #F5F8FC;
}

.company-approach-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.company-approach-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 16px 0;
}

.company-approach-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

.company-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.company-approach-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 20px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.company-approach-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

.company-approach-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  background: #EFF8FF;
  color: #155EEF;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 24px;
}

.company-approach-card-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0 0 12px 0;
}

.company-approach-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

/* ==========================================================================
   SECTION 4 — PRODUCT FAMILY (8 CARDS)
   "Different work. A shared direction."
   ========================================================================== */
.company-family-section {
  padding: 110px 0;
  background-color: #ffffff;
}

.company-family-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px auto;
}

.company-family-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 16px 0;
}

.company-family-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

.company-family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.company-family-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.company-family-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.06);
}

.company-family-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.company-family-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-family-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-family-card-name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0;
}

.company-family-card-by {
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}

.company-family-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.company-family-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0B1B3D;
  text-decoration: none;
  transition: color 200ms ease;
}

.company-family-card-link:hover {
  color: #155EEF;
  text-decoration: none;
}

.company-family-card-arrow {
  font-size: 14px;
  transition: transform 200ms ease;
}

.company-family-card-link:hover .company-family-card-arrow {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .company-family-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .company-hero-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .company-purpose-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .company-purpose-left {
    max-width: 100%;
  }

  .company-approach-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .company-family-section,
  .company-purpose-section,
  .company-approach-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .company-hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .company-hero-headline {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.15;
  }

  .company-hero-body {
    font-size: 16px;
    padding: 0 12px;
  }

  .company-hero-ctas {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }

  .company-btn-primary,
  .company-btn-secondary {
    width: 100%;
  }

  .company-purpose-section,
  .company-approach-section,
  .company-family-section {
    padding: 60px 0;
  }

  .company-purpose-headline,
  .company-approach-headline,
  .company-family-headline {
    font-size: 30px;
    line-height: 1.2;
  }

  .company-family-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .company-approach-card {
    padding: 28px 24px;
  }

  .company-quote-card {
    padding: 36px 20px;
  }

  .company-quote-body {
    font-size: 19px;
  }
}

/* ==========================================================================
   NEW CONTACT / INQUIRY / FAQ SECTIONS FOR COMPANY PAGE
   ========================================================================== */

/* Inquiry Cards Section */
.company-inquiries-section {
  padding: 40px 0 80px 0;
  background-color: #ffffff;
}

.company-inquiries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.company-inquiry-link-wrap {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.company-inquiry-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-inquiry-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.06);
}

.company-inquiry-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF8FF;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.company-inquiry-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0 0 8px 0;
}

.company-inquiry-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #667085;
  margin: 0;
}

/* Split Contact & Form Section */
.company-contact-section {
  padding: 90px 0 110px 0;
  background-color: #F5F8FC;
}

.company-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.company-contact-left {
  max-width: 480px;
}

.company-contact-headline {
  font-family: var(--font-primary);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 18px 0;
}

.company-contact-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #475467;
  margin: 0 0 40px 0;
}

.company-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.company-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #EFF8FF;
  flex-shrink: 0;
}

.company-channel-info {
  display: flex;
  flex-direction: column;
}

.company-channel-label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #667085;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.company-channel-value {
  font-size: 16px;
  font-weight: 600;
  color: #0B1B3D;
}

.company-channel-link {
  text-decoration: none;
  transition: color 180ms ease;
}

.company-channel-link:hover {
  color: #155EEF;
  text-decoration: underline;
}

/* Contact Message Form Card */
.company-form-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.05);
}

.company-form-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800;
  color: #0B1B3D;
  margin: 0 0 6px 0;
}

.company-form-subtitle {
  font-size: 14px;
  color: #667085;
  margin: 0 0 28px 0;
}

.company-msg-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-form-row,
.company-form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.company-form-group {
  display: flex;
  flex-direction: column;
}

.company-form-group.is-full {
  grid-column: 1 / -1;
}

.company-field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #D92D20;
  line-height: 1.35;
}

.company-label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  margin-bottom: 6px;
}

.company-label .req {
  color: #F04438;
  margin-left: 2px;
}

.company-input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #0B1B3D;
  background: #ffffff;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.company-input:focus {
  border-color: #155EEF;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.company-textarea {
  padding: 12px 14px;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #0B1B3D;
  background: #ffffff;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.company-textarea:focus {
  border-color: #155EEF;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

.company-form-checkbox-row {
  margin-top: 4px;
}

.company-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #475467;
  cursor: pointer;
}

.company-checkbox-label input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: #155EEF;
}

.company-form-submit-btn {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #155EEF 0%, #00C49F 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(21, 94, 239, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  margin-top: 8px;
}

.company-form-submit-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(21, 94, 239, 0.4);
}

.company-form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.company-form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.company-form-alert.error {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  color: #B42318;
}

.company-form-success {
  text-align: center;
  padding: 32px 16px;
}

.company-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #D1FADF;
  color: #039855;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.company-form-success h4 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0 0 8px 0;
}

.company-form-success p {
  font-size: 14px;
  color: #667085;
  margin: 0;
}

/* FAQ Section */
.company-faq-section {
  padding: 100px 0 120px 0;
  background-color: #ffffff;
}

.company-faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.company-faq-header {
  text-align: center;
  margin-bottom: 52px;
}

.company-faq-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0;
}

.company-faq-sub {
  font-size: 17px;
  color: #475467;
  margin-top: 12px;
}

.company-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-faq-item {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.company-faq-item.is-open {
  border-color: #D0D5DD;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.company-faq-trigger {
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.company-faq-question {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: #0B1B3D;
  line-height: 1.4;
}

.company-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  flex-shrink: 0;
}

.company-faq-body {
  padding: 0 24px 22px 24px;
}

.company-faq-answer {
  font-size: 15px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

@media (max-width: 992px) {
  .company-inquiries-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .company-contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .company-contact-left {
    max-width: 100%;
  }

  .company-form-card {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .company-form-row,
  .company-form-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
