/* =========================================================
   SUBMALCO – Custom UI enhancements
   Loaded after main.css to refine the StartBox template.
   Brand colors: orange #ff680d, purple #481FA0
   ========================================================= */

:root {
  --brand-orange: #ff680d;
  --brand-orange-dark: #e85800;
  --brand-purple: #481FA0;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-grayscale: grayscale;
}

/* ---------- Buttons ---------- */
.btn {
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease;
  border-radius: .65rem;
}

.btn-accent-1,
.btn-accent-3 {
  box-shadow: 0 6px 18px rgba(255, 104, 13, .25);
}

.btn-accent-1:hover,
.btn-accent-3:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 104, 13, .35);
}

/* Topbar phone CTA */
.navbar-top .btn[style*="ff680d"]:hover {
  background: var(--brand-orange-dark) !important;
}

/* ---------- Navbar ---------- */
.navbar-top {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  transition: box-shadow .3s ease;
}

.navbar-top .nav-link {
  position: relative;
  font-weight: 500;
  transition: color .2s ease;
}

.navbar-top .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width .25s ease;
}

.navbar-top .nav-link:hover::after {
  width: 100%;
}

.navbar-top .nav-link:hover {
  color: var(--brand-orange) !important;
}

/* ---------- Hero / Swiper ---------- */
.swiper h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  font-weight: 700;
  letter-spacing: -.75px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
}

/* Richer cinematic overlay for legibility */
.swiper .background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 80%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .45) 100%);
  pointer-events: none;
  z-index: 1;
}

.swiper .container {
  position: relative;
  z-index: 2;
}

.swiper .background-color {
  transition: opacity .4s ease;
}

/* Subtle slow zoom on the active slide image */
.swiper .background-image img {
  transition: transform 7s ease-out;
  transform: scale(1.05);
  will-change: transform;
}

.swiper .swiper-slide-active .background-image img {
  transform: scale(1.15);
}

/* Animated entrance for the active slide's heading + button */
.swiper .swiper-slide h1,
.swiper .swiper-slide .btn {
  opacity: 0;
  transform: translateY(28px);
}

.swiper .swiper-slide-active h1,
.swiper .swiper-slide-active .btn {
  animation: heroFadeUp .8s cubic-bezier(.22, .61, .36, 1) forwards;
}

.swiper .swiper-slide-active h1 {
  animation-delay: .2s;
}

.swiper .swiper-slide-active .btn {
  animation-delay: .45s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accent rule above the heading */
.swiper .swiper-slide h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-orange);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(255, 104, 13, .5);
}

/* Hero CTA polish */
.swiper .btn {
  padding: .85rem 1.9rem;
  font-weight: 600;
}

/* ---------- Hero navigation arrows ---------- */
.swiper .swiper-button-prev,
.swiper .swiper-button-next {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}

.swiper .swiper-button-prev:hover,
.swiper .swiper-button-next:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(255, 104, 13, .45);
}

/* ---------- Hero pagination ---------- */
.swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, .55);
  opacity: 1;
  transition: width .3s ease, background .3s ease;
}

.swiper .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: var(--brand-orange);
}

/* ---------- Section headings ---------- */
.highlight {
  color: var(--brand-orange);
}

.badge.bg-light {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: .55em 1em;
  border-radius: 999px;
}

/* ---------- Icons: brand orange to match the buttons ---------- */
.service-line-icon.text-accent-1,
.service-line-icon.text-accent-1 svg,
.process-number.text-accent-1 {
  color: var(--brand-orange) !important;
}

/* ---------- About page ---------- */
/* Page hero (title banner) */
.page-hero .background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 50%, rgba(72, 31, 160, .35) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-content {
  animation: heroFadeUp .8s cubic-bezier(.22, .61, .36, 1) both;
}

.page-hero h1 {
  font-weight: 700;
  letter-spacing: -.75px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.page-hero-badge {
  background: var(--brand-orange);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: .55em 1.1em;
  border-radius: 999px;
}

.page-hero-crumbs {
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  font-weight: 500;
}

.page-hero-crumbs a {
  color: #fff;
  text-decoration: none;
}

.page-hero-crumbs a:hover {
  color: var(--brand-orange);
}

.page-hero-crumbs span {
  margin: 0 .35rem;
  opacity: .7;
}

/* Lead intro paragraph */
.lead-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #2b2b30;
}

/* Stats strip */
.stat-card {
  padding: 1.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 104, 13, .35);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .10);
}

.stat-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6b6b73;
}

/* Core service cards */
.about-service {
  background: #fff;
  padding: 2rem 1.85rem;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}

.about-service:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 104, 13, .35);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .10);
}

.about-service .process-title {
  transition: color .2s ease;
}

.about-service:hover .process-title {
  color: var(--brand-orange);
}

/* ---------- Service line cards ---------- */
.service-line {
  background: #fff;
  padding: 1.85rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-line:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 104, 13, .35);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .10);
}

.service-line .service-line-icon {
  transition: transform .3s ease;
}

.service-line:hover .service-line-icon {
  transform: scale(1.1) rotate(-4deg);
}

.service-line-arrow {
  transition: transform .25s ease, color .2s ease;
}

.service-line:hover .service-line-arrow {
  transform: translateX(6px);
  color: var(--brand-orange);
}

/* ---------- Stats badge ---------- */
.h1.m-0.text-white {
  letter-spacing: -1px;
}

/* ---------- Images ---------- */
.rounded-4 img,
img.rounded-4 {
  transition: transform .5s ease;
}

.shape-parent:hover img.rounded-4 {
  transform: scale(1.02);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  color: #fff;
  padding: 2.25rem 0;
  margin-top: 5rem;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  transition: border-color .2s ease, opacity .2s ease;
}

.site-footer a:hover {
  opacity: .85;
  border-color: #fff;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
}

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(255, 104, 13, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 1030;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-orange-dark);
  color: #fff;
}

/* ---------- Misc polish ---------- */
::selection {
  background: rgba(255, 104, 13, .85);
  color: #fff;
}

a {
  transition: color .2s ease;
}
