/* ReferVista — Bexon-inspired corporate theme */

:root {
  --tj-primary: #ff7a2f;
  --tj-primary-dark: #e8651c;
  --tj-primary-soft: rgba(255, 122, 47, 0.12);
  --tj-dark: #111111;
  --tj-text: #1a1a1a;
  --tj-body: #666666;
  --tj-border: #ebebeb;
  --tj-bg: #ffffff;
  --tj-bg-soft: #f6f6f6;
  --tj-radius: 16px;
  --tj-shadow: 0 10px 40px rgba(17, 17, 17, 0.08);
  --header-h: 90px;
  --font: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tj-body);
  background: var(--tj-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--tj-dark);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 18px;
}

.section-gap {
  padding: 110px 0;
}

.section-bg {
  background: var(--tj-bg-soft);
}

.tj-subtitle {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--tj-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tj-subtitle.light {
  color: rgba(255, 255, 255, 0.85);
}

.section-heading p {
  max-width: 640px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.centered .tj-subtitle,
.section-heading.centered h2,
.section-heading.centered p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.centered h2 {
  max-width: 720px;
}

.section-heading.centered p {
  max-width: 620px;
}

.text-center .section-heading p {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.tj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tj-btn-primary {
  background: var(--tj-primary);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 122, 47, 0.28);
}

.tj-btn-primary:hover,
.tj-btn-primary:focus {
  background: var(--tj-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
}

.tj-btn-outline {
  background: transparent;
  color: var(--tj-dark) !important;
  border-color: #d8d8d8;
}

.tj-btn-outline:hover,
.tj-btn-outline:focus {
  border-color: var(--tj-dark);
  color: var(--tj-dark) !important;
}

.tj-btn-light {
  background: #fff;
  color: var(--tj-dark) !important;
}

.tj-btn-light:hover {
  background: var(--tj-dark);
  color: #fff !important;
}

/* Header */
.tj-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  height: var(--header-h);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.tj-header.sticky {
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img,
.footer-logo img {
  height: 58px;
  width: auto;
  border-radius: 10px;
}

.main-menu ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-menu a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--tj-text);
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--tj-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tj-border);
  border-radius: 12px;
  background: #fff;
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--tj-dark);
  border-radius: 2px;
}

/* Hero */
.hero-section {
  padding: calc(var(--header-h) + 50px) 0 80px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 47, 0.1), transparent 42%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.hero-row {
  min-height: 0;
}

.hero-content p {
  max-width: 520px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.stat-box strong {
  display: block;
  color: var(--tj-dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-box span {
  font-size: 14px;
  color: var(--tj-body);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  background: transparent;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-image-wrap > img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  outline: none;
}

.about-image-wrap img,
.solutions-visual img {
  border: none;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
  outline: none;
}

.img-float {
  animation: softFloat 4.5s ease-in-out infinite;
}

.img-float-slow {
  animation: softFloat 6s ease-in-out infinite;
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .img-float,
  .img-float-slow {
    animation: none;
  }
}

/* About */
.about-image-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.about-image-wrap img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.about-pillars {
  margin-top: 8px;
  display: grid;
  gap: 16px;
}

.about-pillar {
  background: #fff;
  border: 1px solid var(--tj-border);
  border-radius: 18px;
  padding: 20px 22px;
}

.about-pillar h4 {
  margin-bottom: 8px;
}

.about-pillar p {
  margin: 0;
  font-size: 15px;
}

/* Services */
.services-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center !important;
}

.services-header .tj-subtitle,
.services-header h2,
.services-header p {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.services-header h2 {
  max-width: 680px;
}

.services-header p {
  max-width: 620px;
  margin-bottom: 0;
}

.services-section .section-heading {
  text-align: center;
  width: 100%;
}

.services-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 10px auto 28px;
  max-width: 1100px;
  align-items: stretch;
}

.service-panel {
  background: #fff;
  border: 1px solid var(--tj-border);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(17, 17, 17, 0.04);
}

.service-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--tj-shadow);
  border-color: transparent;
}

.service-panel-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.service-panel-top .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.panel-label {
  display: block;
  color: var(--tj-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.service-panel-top h3 {
  margin: 0;
}

.service-panel > p {
  flex: 0 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--tj-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-grid i {
  color: var(--tj-primary);
  margin-top: 2px;
}

.service-panel .service-link {
  margin-top: auto;
}

.services-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.service-card {
  background: #fff;
  border: 1px solid var(--tj-border);
  border-radius: 22px;
  padding: 34px 28px;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tj-shadow);
  border-color: transparent;
}

.service-card p {
  margin-bottom: 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--tj-primary-soft);
  color: var(--tj-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tj-dark);
  font-weight: 700;
  font-size: 14px;
}

.service-link:hover {
  color: var(--tj-primary);
}

/* Capabilities */
.capabilities-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.capabilities-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.capability-grid {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.capability-card {
  background: var(--tj-bg-soft);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid transparent;
}

.capability-card p {
  margin-bottom: 14px;
  font-size: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--tj-border);
  color: var(--tj-text);
  font-size: 13px;
  font-weight: 600;
}

.solutions-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  box-shadow: none;
  flex: 1 1 auto;
  width: 100%;
  min-height: 560px;
}

.solutions-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

/* Partners */
.partners-section {
  padding-top: 90px;
  padding-bottom: 90px;
  text-align: center;
}

.partners-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center !important;
}

.partners-header h2 {
  margin: 0 0 14px;
  text-align: center !important;
}

.partners-header p {
  margin: 0 auto;
  max-width: 620px;
  text-align: center !important;
  color: var(--tj-body);
}

.partners-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--tj-border);
  border-radius: 24px;
  padding: 42px 28px;
  box-shadow: 0 10px 36px rgba(17, 17, 17, 0.04);
  text-align: center;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
  margin: 0 auto;
  width: 100%;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 120px;
  min-height: 56px;
  padding: 6px 10px;
}

.partner-item img {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* CTA */
.cta-section {
  padding: 0 0 20px;
}

.cta-box {
  background: var(--tj-dark);
  border-radius: 28px;
  padding: 56px 48px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-box p {
  margin-bottom: 0;
  max-width: 560px;
}

/* Contact */
.contact-info-list {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tj-primary-soft);
  color: var(--tj-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--tj-dark);
  font-weight: 600;
}

.contact-info-item a:hover {
  color: var(--tj-primary);
}

.contact-info-item p {
  margin: 0;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--tj-border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--tj-shadow);
}

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

.contact-form .form-control {
  height: 56px;
  border: 1px solid var(--tj-border);
  border-radius: 12px;
  box-shadow: none;
  background: #fafafa;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--tj-dark);
}

.contact-form textarea.form-control {
  height: auto;
  resize: vertical;
}

.contact-form .form-control:focus {
  border-color: var(--tj-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.12);
}

.contact-form .tj-btn {
  border: none;
}

.contact-form .tj-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 22px;
}

.form-status.is-success {
  color: #1f8f4e;
}

.form-status.is-error {
  color: #d64545;
}

/* Footer */
.tj-footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.tj-footer h4 {
  color: #fff;
  margin-bottom: 18px;
}

.tj-footer p {
  color: rgba(255, 255, 255, 0.65);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--tj-primary);
}

.footer-top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

/* Back top */
.go-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tj-primary);
  color: #fff;
  display: none;
  text-align: center;
  line-height: 48px;
  font-size: 22px;
  z-index: 99;
  box-shadow: 0 10px 24px rgba(255, 122, 47, 0.35);
}

.go-top:hover {
  background: var(--tj-primary-dark);
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --header-h: 78px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-menu {
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 18px;
    box-shadow: var(--tj-shadow);
    padding: 14px;
    display: none;
  }

  .main-menu.open {
    display: block;
  }

  .main-menu ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-menu a {
    display: block;
    padding: 12px 14px;
  }

  .hero-section {
    padding-top: calc(var(--header-h) + 30px);
  }

  .hero-visual {
    margin-top: 36px;
  }

  .hero-image-wrap,
  .about-image-wrap,
  .solutions-visual img {
    max-width: 480px;
  }

  .solutions-visual img {
    min-height: 0;
  }

  .about-image-wrap {
    margin-bottom: 36px;
  }

  .services-primary,
  .services-secondary {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .solutions-visual {
    margin-top: 30px;
  }

  .partners-logos {
    gap: 22px 24px;
  }

  .cta-box {
    padding: 40px 28px;
    text-align: center;
  }

  .cta-box .tj-btn {
    margin-top: 24px;
  }

  .cta-action,
  .text-lg-right {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .section-gap {
    padding: 80px 0;
  }

  .hero-stats {
    gap: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .partners-wrap {
    padding: 28px 18px;
  }

  .partners-logos {
    gap: 18px 16px;
  }

  .partner-item {
    min-width: 110px;
  }

  .partner-item img {
    height: 32px;
  }

  .hero-image-wrap,
  .about-image-wrap,
  .solutions-visual img {
    max-width: 400px;
  }

  .solutions-visual {
    min-height: 0;
    margin-top: 24px;
  }

  .contact-form {
    margin-top: 28px;
    padding: 24px;
  }

  .tj-footer .col-6 {
    margin-bottom: 28px;
  }
}
