/* ============================================================
   Resolink Technologies — Design System
   Apple-inspired | Light Orange + White | Bootstrap 5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ===== CSS TOKENS ===== */
:root {
  --orange:         #FF6B2B;
  --orange-hover:   #E85A1A;
  --orange-light:   #FF8C5A;
  --orange-pale:    #FFB88A;
  --orange-bg:      #FFF4EE;
  --orange-bg-xs:   #FFF9F5;

  --white:          #FFFFFF;
  --bg-warm:        #FFF9F6;
  --bg-soft:        #FAFAF8;

  --text-primary:   #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted:     #98989D;

  --border:         #EBEBEB;
  --border-warm:    #F0EAE4;

  --shadow-xs:   0 1px 4px rgba(0,0,0,.04);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.10);
  --shadow-o:    0 4px 20px rgba(255,107,43,.28);

  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 100px;

  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: all .18s var(--ease);
  --t:      all .3s  var(--ease);
  --t-slow: all .5s  var(--ease);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 68px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); }
p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; color: var(--text-primary); line-height: 1.2; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease;
}
.rt-loader {
  width: 44px; height: 44px;
  border: 3px solid var(--orange-bg);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: rtSpin .75s linear infinite;
}
@keyframes rtSpin { to { transform: rotate(360deg); } }

/* ===== NAVBAR ===== */
.rt-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(235,235,235,.9);
  transition: var(--t);
}
.rt-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}
.rt-navbar .rt-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 0 24px;
}
.rt-brand img { height: 64px; width: auto; }
.rt-nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.rt-nav-links a {
  display: inline-block;
  padding: 7px 13px;
  font-size: .875rem; font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--r-xs);
  transition: var(--t-fast);
}
.rt-nav-links a:hover,
.rt-nav-links a.active {
  color: var(--orange);
  background: var(--orange-bg);
}
.rt-nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-o);
}
.rt-nav-cta:hover {
  background: var(--orange-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,107,43,.38) !important;
}
.rt-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--r-xs);
}
.rt-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--t-fast);
}

@media (max-width: 991px) {
  .rt-nav-links {
    display: none; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .rt-nav-links.open { display: flex; }
  .rt-hamburger { display: flex; }
  .rt-nav-links a { padding: 10px 14px; }
}

/* ===== SCROLL TO TOP ===== */
#rtScrollTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 42px; height: 42px;
  background: var(--orange); color: #fff; border: none;
  border-radius: 50%; cursor: pointer; font-size: .9rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-o); transition: var(--t-fast);
}
#rtScrollTop:hover { background: var(--orange-hover); transform: translateY(-2px); }
#rtScrollTop.visible { display: flex; }

/* ===== BUTTONS ===== */
.btn-rt {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  padding: 12px 26px; border-radius: var(--r-pill); border: none;
  cursor: pointer; transition: var(--t-fast); text-decoration: none;
}
.btn-rt-primary {
  background: var(--orange); color: #fff;
  box-shadow: var(--shadow-o);
}
.btn-rt-primary:hover {
  background: var(--orange-hover); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,107,43,.38);
}
.btn-rt-secondary {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-rt-secondary:hover {
  border-color: var(--orange); color: var(--orange);
  transform: translateY(-2px);
}
.btn-rt-white {
  background: #fff; color: var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  font-weight: 700;
}
.btn-rt-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  color: var(--orange-hover);
}
.btn-rt-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-rt-outline-white:hover {
  background: rgba(255,255,255,.1); border-color: #fff; color: #fff;
  transform: translateY(-2px);
}
.btn-rt-ghost {
  background: transparent; color: var(--orange);
  padding: 8px 0; border-radius: 0; gap: 6px;
}
.btn-rt-ghost:hover { color: var(--orange-hover); gap: 10px; }

/* ===== PAGE BANNER ===== */
.rt-banner {
  background: linear-gradient(160deg, #ffffff 0%, #fff5f0 40%, #ffe0cc 75%, #ffcba8 100%);
  min-height: 90px; padding: 18px 0; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.rt-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(255,107,43,.10) 0%, transparent 55%);
  pointer-events: none;
}
.rt-banner::after {
  content: ''; position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,107,43,.12) 0%, transparent 70%);
  top: -80px; right: -60px; border-radius: 50%;
}
.rt-banner .container { position: relative; z-index: 2; }
.rt-banner .rt-label {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; text-transform: none;
  color: #1a1a2e; background: transparent; padding: 0; border-radius: 0;
  display: block; margin-bottom: 8px; line-height: 1.2;
}
.rt-breadcrumb {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.rt-breadcrumb li { font-size: .8rem; color: var(--text-muted); }
.rt-breadcrumb li a { color: var(--orange); font-weight: 500; }
.rt-breadcrumb li a:hover { color: var(--orange-dark); }
.rt-breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--text-muted); }

/* ===== SECTION COMMONS ===== */
.rt-section       { padding: 96px 0; }
.rt-section-sm    { padding: 64px 0; }
.rt-section-alt   { background: var(--bg-warm); }

.rt-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); background: var(--orange-bg);
  padding: 3px 12px; border-radius: var(--r-pill); margin-bottom: 8px;
}
.rt-section-title {
  font-size: clamp(1.75rem,4vw,2.6rem); font-weight: 800;
  color: var(--text-primary); letter-spacing: -.02em;
  margin-bottom: 14px;
}
.rt-section-sub {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
  max-width: 560px;
}
.rt-section-header { margin-bottom: 56px; }

/* ===== HERO ===== */
.rt-hero {
  min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(155deg, #fff 0%, #FFF9F5 40%, var(--orange-bg) 100%);
  position: relative; overflow: hidden; padding: 60px 0;
}
.rt-hero::before {
  content: ''; position: absolute;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255,107,43,.07) 0%, transparent 68%);
  top: -200px; right: -120px; border-radius: 50%; pointer-events: none;
}
.rt-hero::after {
  content: ''; position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,107,43,.05) 0%, transparent 70%);
  bottom: -80px; left: -80px; border-radius: 50%; pointer-events: none;
}
.rt-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-bg); color: var(--orange);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--r-pill); margin-bottom: 24px;
}
.rt-hero-title {
  font-size: clamp(2.2rem,5.5vw,3.8rem); font-weight: 800;
  color: var(--text-primary); letter-spacing: -.025em;
  line-height: 1.1; margin-bottom: 20px;
}
.rt-hero-title span { color: var(--orange); }
.rt-hero-sub {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 36px; max-width: 540px;
}
.rt-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== STATS BAR ===== */
.rt-stats-bar {
  padding: 56px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rt-stat { text-align: center; padding: 0 16px; }
.rt-stat-num {
  font-size: 2.6rem; font-weight: 800; color: var(--orange);
  line-height: 1; margin-bottom: 6px; letter-spacing: -.03em;
}
.rt-stat-label { font-size: .875rem; font-weight: 500; color: var(--text-secondary); }

/* ===== SERVICE CARDS ===== */
.rt-service-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 36px 30px; border: 1px solid var(--border);
  transition: var(--t); height: 100%; position: relative; overflow: hidden;
}
.rt-service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: var(--t);
}
.rt-service-card:hover {
  border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.rt-service-card:hover::before { transform: scaleX(1); }
.rt-svc-icon {
  width: 58px; height: 58px; background: var(--orange-bg);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--orange); margin-bottom: 22px; transition: var(--t);
}
.rt-service-card:hover .rt-svc-icon { background: var(--orange); color: #fff; }
.rt-service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.rt-service-card p { font-size: .9rem; line-height: 1.65; margin-bottom: 20px; }

/* ===== PRODUCT CARDS ===== */
.rt-product-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px; border: 1px solid var(--border);
  transition: var(--t); height: 100%;
}
.rt-product-card:hover {
  border-color: var(--orange-pale); box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.rt-prod-icon {
  width: 52px; height: 52px; background: var(--orange-bg);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--orange); margin-bottom: 18px;
}
.rt-product-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.rt-product-card p { font-size: .88rem; }

/* ===== CTA SECTION ===== */
.rt-cta {
  background: linear-gradient(130deg, var(--orange) 0%, #FF8C5A 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.rt-cta::before {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.06); border-radius: 50%;
  top: -200px; right: -100px;
}
.rt-cta h2 { color: #fff; font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 800; margin-bottom: 14px; }
.rt-cta p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; max-width: 520px; }

/* ===== FORM ===== */
.rt-form-group { margin-bottom: 18px; }
.rt-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-family: var(--font); font-size: .9rem;
  color: var(--text-primary); background: var(--white);
  outline: none; transition: var(--t-fast); appearance: none;
}
.rt-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,43,.12); }
.rt-input::placeholder { color: var(--text-muted); }
.rt-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
}
.rt-textarea { resize: vertical; min-height: 120px; }

/* ===== CONTACT INFO CARDS ===== */
.rt-contact-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px 24px; border: 1px solid var(--border);
  text-align: center; transition: var(--t);
}
.rt-contact-card:hover { border-color: var(--orange-pale); box-shadow: var(--shadow-md); }
.rt-contact-icon {
  width: 54px; height: 54px; background: var(--orange-bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--orange); margin: 0 auto 16px;
}
.rt-contact-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.rt-contact-card p  { font-size: .875rem; }

/* ===== ALERTS ===== */
.rt-alert-success {
  background: #F0FFF4; border: 1px solid #86EFAC; color: #166534;
  padding: 14px 18px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 20px;
}
.rt-alert-error {
  background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B;
  padding: 14px 18px; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 20px;
}

/* ===== FILTER BUTTONS ===== */
.rt-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.rt-filter-btn {
  padding: 8px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font); font-size: .85rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: var(--t-fast);
}
.rt-filter-btn:hover, .rt-filter-btn.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
}

/* ===== SERVICE DETAIL ===== */
.rt-svc-detail { padding: 80px 0; }
.rt-svc-detail:nth-of-type(even) { background: var(--bg-warm); }
.rt-process-step { display: flex; gap: 16px; margin-bottom: 24px; }
.rt-step-num {
  min-width: 38px; height: 38px; background: var(--orange-bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; color: var(--orange); flex-shrink: 0;
}
.rt-step-body h5 { font-size: .975rem; font-weight: 700; margin-bottom: 4px; }
.rt-step-body p  { font-size: .875rem; }

/* ===== TECH PILLS ===== */
.rt-pill {
  display: inline-block; padding: 5px 13px;
  background: var(--orange-bg); color: var(--orange);
  border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; margin: 3px;
}

/* ===== JOB CARDS ===== */
.rt-job-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 28px; border: 1px solid var(--border); transition: var(--t);
}
.rt-job-card:hover { border-color: var(--orange-pale); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.rt-job-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.rt-job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rt-job-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .78rem; font-weight: 500;
  color: var(--text-secondary); background: var(--bg-soft);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.rt-job-tag.orange { color: var(--orange); background: var(--orange-bg); }
.rt-job-skills { font-size: .85rem; color: var(--text-secondary); margin-bottom: 20px; }

/* ===== VALUES CARDS ===== */
.rt-value-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px; border: 1px solid var(--border); transition: var(--t);
}
.rt-value-card:hover { border-color: var(--orange-pale); box-shadow: var(--shadow-md); }
.rt-value-icon { font-size: 1.8rem; color: var(--orange); margin-bottom: 14px; }

/* ===== SEARCH ===== */
.rt-search {
  display: flex; max-width: 520px; margin: 0 auto 48px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.rt-search input {
  flex: 1; border: none; padding: 13px 20px;
  font-family: var(--font); font-size: .9rem;
  color: var(--text-primary); background: #fff; outline: none;
}
.rt-search button {
  background: var(--orange); border: none; padding: 13px 22px;
  color: #fff; cursor: pointer; font-weight: 600; font-size: .88rem;
  font-family: var(--font); transition: var(--t-fast);
}
.rt-search button:hover { background: var(--orange-hover); }

/* ===== RT IMAGE ===== */
.rt-img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }

/* ===== PARTNER LOGOS ===== */
.rt-partner-logo {
  height: 44px; object-fit: contain;
  filter: grayscale(1) opacity(.45); transition: var(--t-fast);
}
.rt-partner-logo:hover { filter: grayscale(0) opacity(1); }

/* ===== FOOTER ===== */
.rt-footer {
  background: #141414; color: rgba(255,255,255,.78);
  padding: 72px 0 0;
}
.rt-footer-logo img {
  height: 64px; filter: brightness(0) invert(1) opacity(0.9); margin-bottom: 14px;
  max-width: 240px; object-fit: contain;
}
.rt-footer-tagline { font-size: .875rem; color: rgba(255,255,255,.42); line-height: 1.65; max-width: 220px; }
.rt-footer h5 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 20px;
}
.rt-footer ul { list-style: none; padding: 0; margin: 0; }
.rt-footer ul li { margin-bottom: 11px; }
.rt-footer ul li a { font-size: .875rem; color: rgba(255,255,255,.65); transition: var(--t-fast); }
.rt-footer ul li a:hover { color: var(--orange-light); }
.rt-footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.rt-social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,.08);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--t-fast);
}
.rt-social-btn:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.rt-footer-newsletter { display: flex; max-width: 300px; }
.rt-footer-newsletter input {
  flex: 1; border: none; border-radius: var(--r-pill) 0 0 var(--r-pill);
  padding: 10px 16px; font-size: .85rem;
  background: rgba(255,255,255,.08); color: #fff; outline: none;
}
.rt-footer-newsletter input::placeholder { color: rgba(255,255,255,.35); }
.rt-footer-newsletter button {
  background: var(--orange); border: none; padding: 10px 16px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  color: #fff; cursor: pointer; transition: var(--t-fast);
}
.rt-footer-newsletter button:hover { background: var(--orange-hover); }
.rt-footer-bottom {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
}
.rt-footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.3); margin: 0; }
.rt-footer-bottom a { color: rgba(255,255,255,.4); font-size: .8rem; transition: var(--t-fast); }
.rt-footer-bottom a:hover { color: var(--orange-light); }

/* ===== MISC UTILITY ===== */
.text-orange { color: var(--orange) !important; }
.bg-orange-xs { background: var(--orange-bg-xs); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rt-section   { padding: 64px 0; }
  .rt-hero      { min-height: 80vh; }
  .rt-hero-btns { flex-direction: column; align-items: flex-start; }
  .rt-cta       { padding: 60px 0; }
  .rt-stat-num  { font-size: 2.1rem; }
  .rt-footer    { padding: 52px 0 0; }
}
@media (max-width: 480px) {
  .rt-section { padding: 48px 0; }
  .btn-rt     { width: 100%; justify-content: center; }
  .rt-hero-title { font-size: 2rem; }
}
