/* ============================================
   RUNOK TEMPLATE STYLES — Homepage Only
   Scoped under .rk-home
   ============================================ */

/* --- Design Tokens --- */
.rk-home {
  --rk-blue: #3F5AF3;
  --rk-heading: #11151C;
  --rk-body: #4A5568;
  --rk-bg-white: #ffffff;
  --rk-bg-gray: #F8F8F8;
  --rk-border: #E4E4E4;
  --rk-section-gap: 130px;
  --rk-radius: 16px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--rk-body);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
.rk-home h1, .rk-home h2, .rk-home h3, .rk-home h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--rk-heading);
  margin: 0;
}

.rk-home h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.rk-home h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.rk-home h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.rk-home p, .rk-home li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--rk-body);
}

.rk-home strong {
  color: var(--rk-heading);
}

/* --- Label with gradient lines --- */
.rk-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rk-blue);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.rk-label::before,
.rk-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--rk-blue), transparent);
  border-radius: 1px;
}

.rk-label::after {
  background: linear-gradient(90deg, transparent, var(--rk-blue));
}

/* --- Sections --- */
.rk-section {
  padding: var(--rk-section-gap) 0;
  background: var(--rk-bg-white);
}

.rk-section--gray {
  padding: var(--rk-section-gap) 0;
  background: var(--rk-bg-gray);
}

.rk-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.rk-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rk-blue);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
}

.rk-btn--primary:hover {
  background: #2D47D9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(63, 90, 243, 0.3);
  color: #fff;
  text-decoration: none;
}

.rk-btn--primary svg {
  transition: transform 0.3s;
}

.rk-btn--primary:hover svg {
  transform: translateX(4px);
}

/* --- Hero section --- */
.rk-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--rk-bg-white);
  overflow: hidden;
}

.rk-hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rk-hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: var(--rk-blue);
}

.rk-hero__shape--1 {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -100px;
}

.rk-hero__shape--2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
}

.rk-hero__shape--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 15%;
  opacity: 0.04;
}

.rk-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  width: 100%;
}

.rk-hero h1 span.rk-text-blue {
  color: var(--rk-blue);
}

.rk-hero h1 span.rk-text-italic {
  font-weight: 400;
  font-style: italic;
  color: var(--rk-body);
}

.rk-hero__desc {
  max-width: 720px;
  margin: 24px 0 40px;
}

/* --- Split layouts --- */
.rk-split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.rk-split--7-5 {
  grid-template-columns: 7fr 5fr;
}

.rk-split--8-4 {
  grid-template-columns: 8fr 4fr;
}

.rk-split--4-8 {
  grid-template-columns: 4fr 8fr;
}

.rk-split--5-7 {
  grid-template-columns: 5fr 7fr;
}

/* --- Image styling --- */
.rk-img-rounded {
  border-radius: var(--rk-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.rk-img-rounded img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Service Cards (4-column grid with image overlay) --- */
.rk-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rk-service-card {
  position: relative;
  border-radius: var(--rk-radius);
  overflow: hidden;
  min-height: 380px;
  background: var(--rk-bg-white);
  border: 1px solid var(--rk-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.rk-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.rk-service-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rk-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rk-service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,21,28,0) 30%, rgba(17,21,28,0.85) 100%);
  z-index: 1;
}

.rk-service-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 28px;
  color: #fff;
}

.rk-service-card__content h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.rk-service-card__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Tabs (blue style) --- */
.rk-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rk-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--rk-body);
  transition: all 0.3s ease;
}

.rk-tab:hover {
  background: rgba(63, 90, 243, 0.06);
  color: var(--rk-heading);
}

.rk-tab--active {
  background: var(--rk-blue) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(63, 90, 243, 0.25);
}

/* --- Benefits list (blue checkmarks) --- */
.rk-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rk-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rk-body);
}

.rk-benefits li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--rk-blue);
}

/* --- Tab content card --- */
.rk-tab-content {
  border-radius: var(--rk-radius);
}

.rk-tab-content h3 span {
  color: var(--rk-blue);
  margin-right: 8px;
}

/* --- Process Circles --- */
.rk-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.rk-process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rk-process-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--rk-bg-white);
  border: 2px solid var(--rk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
  overflow: hidden;
  padding: 24px;
}

.rk-process-circle:hover {
  border-color: var(--rk-blue);
  box-shadow: 0 8px 32px rgba(63, 90, 243, 0.15);
  transform: translateY(-4px);
}

.rk-process-circle img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.rk-process-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.rk-process-item p {
  font-size: 15px;
  max-width: 320px;
}

/* --- Banner card (inside transformation section) --- */
.rk-banner-card {
  background: var(--rk-bg-white);
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
  transition: box-shadow 0.35s;
}

.rk-banner-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.rk-banner-card img {
  max-width: 100%;
  height: auto;
}

/* --- Accordion --- */
.rk-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rk-accordion-item {
  background: var(--rk-bg-white);
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rk-accordion-item--open {
  border-color: var(--rk-blue);
  box-shadow: 0 4px 20px rgba(63, 90, 243, 0.1);
}

.rk-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--rk-heading);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.3s;
}

.rk-accordion-item--open .rk-accordion-header {
  color: var(--rk-blue);
}

.rk-accordion-chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--rk-body);
}

.rk-accordion-item--open .rk-accordion-chevron {
  transform: rotate(180deg);
  color: var(--rk-blue);
}

.rk-accordion-body {
  padding: 0 24px 24px;
}

.rk-accordion-body img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* --- Contact section --- */
.rk-contact-map {
  border-radius: var(--rk-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.rk-contact-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* --- Section header utility --- */
.rk-section-header {
  margin-bottom: 48px;
}

.rk-section-header h2 {
  margin-top: 16px;
  margin-bottom: 16px;
}

.rk-section-header p {
  max-width: 800px;
}

/* --- Service number badge --- */
.rk-service-num {
  color: var(--rk-blue);
  font-weight: 800;
  margin-right: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .rk-home {
    --rk-section-gap: 90px;
  }

  .rk-split--7-5,
  .rk-split--8-4,
  .rk-split--4-8,
  .rk-split--5-7 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .rk-banner-card {
    grid-template-columns: 1fr;
  }

  .rk-hero__content {
    padding: 120px 24px 60px;
  }
}

@media (max-width: 768px) {
  .rk-home {
    --rk-section-gap: 60px;
  }

  .rk-hero {
    min-height: 80vh;
  }

  .rk-hero__content {
    padding: 100px 16px 48px;
  }

  .rk-hero__shape--1 {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -60px;
  }

  .rk-hero__shape--2 {
    width: 160px;
    height: 160px;
  }

  .rk-hero__shape--3 {
    display: none;
  }

  .rk-service-grid {
    grid-template-columns: 1fr;
  }

  .rk-service-card {
    min-height: 280px;
  }

  .rk-process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rk-process-circle {
    width: 120px;
    height: 120px;
    padding: 18px;
  }

  .rk-container {
    padding: 0 16px;
  }

  .rk-label::before,
  .rk-label::after {
    width: 24px;
  }

  .rk-btn--primary {
    padding: 14px 28px;
    font-size: 15px;
  }

  .rk-contact-map iframe {
    height: 300px;
  }

  .rk-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rk-tab {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  .rk-accordion-header {
    font-size: 16px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .rk-home h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .rk-home h2 {
    font-size: clamp(26px, 6vw, 32px);
  }
}
