/* ============================================================
   services.css — services.html hub page
   Load after slp-critical.css + slp-deferred.css
   ============================================================ */

.hero-section {
  background:
    linear-gradient(135deg, rgba(74, 0, 114, 0.88) 0%, rgba(106, 0, 153, 0.82) 100%),
    url('../../photos/hero-main.webp') center / cover no-repeat;
  color: #ffffff;
  padding: 72px 0 64px;
  text-align: center;
}

.hero-section h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-section h1 .highlight {
  color: #ffd54f;
}

.hero-section .hero-subtitle {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-section .hero-subtitle a {
  color: #ffd54f;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-cta.btn-primary {
  background: #ffd54f;
  color: #4a0072;
  box-shadow: 0 8px 24px rgba(255, 213, 79, 0.35);
}

.btn-cta.btn-orange {
  background: #ff9800;
  color: #ffffff;
}

.btn-cta.btn-secondary {
  background: #25d366;
  color: #ffffff;
}

.section {
  padding: 64px 0;
}

.section.alt-bg {
  background: #f4f7f6;
}

.section.light-bg {
  background: #ffffff;
}

.section.dark-bg {
  background: linear-gradient(135deg, #4a0072 0%, #6a0099 100%);
  color: #ffffff;
}

.section.gold-bg {
  background: #ffd54f;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  color: #666666;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

.section-head.white h2 {
  color: #ffd54f;
}

.section-head.white p {
  color: rgba(255, 255, 255, 0.88);
}

.badge {
  display: inline-block;
  background: rgba(74, 0, 114, 0.08);
  color: #4a0072;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.process-step {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(74, 0, 114, 0.06);
}

.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #4a0072;
  color: #ffd54f;
  font-weight: 800;
  font-size: 16px;
  line-height: 40px;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: #666666;
  line-height: 1.55;
}

.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 22px;
  border: 2px solid #4a0072;
  background: #ffffff;
  color: #4a0072;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: #4a0072;
  color: #ffffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.s-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(74, 0, 114, 0.07);
  border-top: 4px solid #ffd54f;
}

.s-card .s-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.s-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 10px;
}

.s-card p {
  font-size: 14px;
  color: #555555;
  line-height: 1.65;
  margin-bottom: 14px;
}

.s-card ul {
  margin: 0 0 18px;
  padding-left: 1.2em;
  font-size: 13px;
  color: #666666;
  line-height: 1.7;
}

.card-link {
  color: #4a0072;
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.country-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 0, 114, 0.1);
}

.country-flag {
  font-size: 28px;
  line-height: 1;
}

.country-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.country-info .c-name {
  font-weight: 800;
  color: #4a0072;
  font-size: 15px;
}

.country-info .c-rate {
  font-size: 13px;
  color: #666666;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid rgba(74, 0, 114, 0.1);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 32px rgba(74, 0, 114, 0.08);
}

.tool-card .tool-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.tool-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 12px;
}

.tool-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #666666;
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-card input,
.tool-card select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 2px solid rgba(74, 0, 114, 0.12);
  border-radius: 10px;
  background: #faf8fc;
  color: #222222;
}

.tool-card input:focus,
.tool-card select:focus {
  outline: none;
  border-color: #4a0072;
  box-shadow: 0 0 0 3px rgba(74, 0, 114, 0.12);
  background: #ffffff;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tool-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a0072 0%, #6a0099 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 0, 114, 0.25);
}

.tool-result {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: #f8f4fc;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.tool-result.show {
  display: block;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.why-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.25);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.why-card .why-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffd54f;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.customs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.customs-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 6px 22px rgba(74, 0, 114, 0.06);
}

.customs-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #4a0072;
  margin-bottom: 14px;
}

.customs-card ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  color: #555555;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 52px 0 44px;
  }

  .section {
    padding: 48px 0;
  }

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

  .input-row {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn-cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 3px;
  border-radius: 4px;
}
