/* ==========================================================================
   SAFALTAMARG — style.css  (shared across all pages)
   Brand: "The Path to Success"
   Palette: Ink #131A36 | Indigo #3947D6 | Saffron #FF8A00 | Mint #12B8A0
   Fonts:   Sora (display) + Plus Jakarta Sans (body)
   Signature: dashed "marg" (path) motif used in hero, dividers & timelines
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #131A36;
  --ink-soft: #55608A;
  --primary: #3947D6;
  --primary-dark: #2733A8;
  --accent: #FF8A00;
  --accent-soft: #FFF1DE;
  --mint: #12B8A0;
  --bg-soft: #F6F7FD;
  --line: #E4E7F5;
  --grad: linear-gradient(120deg, #3947D6, #6D5BF2);
  --grad-warm: linear-gradient(120deg, #FF8A00, #FFB55C);
  --shadow-sm: 0 6px 22px rgba(19, 26, 54, .08);
  --shadow-lg: 0 18px 50px rgba(19, 26, 54, .14);
  --radius: 1.1rem;
  --f-display: "Sora", sans-serif;
  --f-body: "Plus Jakarta Sans", sans-serif;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--f-body); color: var(--ink); background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 700; color: var(--ink); }
img { max-width: 100%; }
a { text-decoration: none; }

.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
/* signature: tiny dashed path before every eyebrow */
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background-image: linear-gradient(90deg, var(--accent) 60%, transparent 40%);
  background-size: 8px 2px;
}
.section-title { font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.25; margin-bottom: .9rem; }
.lead-muted { color: var(--ink-soft); }

/* ---------- 3. Buttons ---------- */
.btn-brand {
  background: var(--grad);
  color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  border: 0; border-radius: .8rem;
  padding: .72rem 1.6rem;
  box-shadow: 0 10px 26px rgba(57, 71, 214, .35);
  transition: transform .3s, box-shadow .3s;
}
.btn-brand:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(57, 71, 214, .45); }
.btn-warm {
  background: var(--grad-warm);
  color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  border: 0; border-radius: .8rem;
  padding: .72rem 1.6rem;
  box-shadow: 0 10px 26px rgba(255, 138, 0, .35);
  transition: transform .3s, box-shadow .3s;
}
.btn-warm:hover { color: #fff; transform: translateY(-3px); }
.btn-ghost {
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  border-radius: .8rem;
  padding: .66rem 1.5rem;
  transition: background .3s, border-color .3s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------- 4. Top bar + Navbar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.85); font-size: .8rem; padding: .4rem 0; }
.topbar a { color: rgba(255,255,255,.85); transition: color .3s; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: .3rem; }

.navbar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, padding .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); padding: .55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: .8rem;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.15rem;
  position: relative; overflow: hidden;
}
/* dashed path across the logo mark */
.brand-mark::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 8px; height: 2px;
  background-image: linear-gradient(90deg, rgba(255,255,255,.9) 55%, transparent 45%);
  background-size: 7px 2px;
  transform: rotate(-14deg);
}
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1; }
.brand-name small { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: .2rem; }

.navbar .nav-link {
  font-family: var(--f-display); font-size: .88rem; font-weight: 500;
  color: var(--ink);
  padding: .5rem .85rem;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }
.navbar .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
}
.navbar .dropdown-item {
  font-family: var(--f-display); font-size: .86rem; font-weight: 500;
  border-radius: .6rem;
  padding: .55rem .9rem;
}
.navbar .dropdown-item:hover { background: var(--bg-soft); color: var(--primary); }
.navbar-toggler { border: 0; font-size: 1.6rem; color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- 5. Hero (home) & page heroes ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 85% -10%, rgba(109, 91, 242, .5), transparent 60%),
              radial-gradient(900px 480px at -10% 110%, rgba(255, 138, 0, .25), transparent 55%),
              var(--ink);
  color: #fff;
  padding: 6.5rem 0 7rem;
  overflow: hidden;
}
.hero-title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.16; }
.hero-title .mark {
  color: var(--accent);
  position: relative; white-space: nowrap;
}
/* signature dashed path under the key phrase */
.hero-title .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  background-image: linear-gradient(90deg, var(--accent) 55%, transparent 45%);
  background-size: 12px 3px;
}
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 560px; margin-top: 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-badges span {
  font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 2rem;
  padding: .38rem .95rem;
}
.hero-badges i { color: var(--mint); margin-right: .3rem; }

/* the "marg" — decorative dashed SVG path behind hero cards */
.hero-path { position: absolute; inset: 0; pointer-events: none; opacity: .55; }

/* stacked service cards along the path */
.path-cards { position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.path-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  color: #fff;
  transition: transform .35s, background .35s;
}
.path-card:hover { transform: translateX(8px); background: rgba(255,255,255,.13); color: #fff; }
.path-card:nth-child(2) { margin-left: 2.4rem; }
.path-card:nth-child(3) { margin-left: 4.8rem; }
.path-card .pc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: .9rem;
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.pc-erp { background: rgba(255, 138, 0, .2); color: var(--accent); }
.pc-web { background: rgba(18, 184, 160, .2); color: var(--mint); }
.pc-seo { background: rgba(109, 91, 242, .28); color: #B7ACFF; }
.path-card strong { font-family: var(--f-display); font-size: .95rem; display: block; }
.path-card span { font-size: .78rem; opacity: .8; }

/* inner-page hero */
.page-hero {
  background: radial-gradient(900px 400px at 90% -20%, rgba(109, 91, 242, .45), transparent 60%), var(--ink);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin: 0 0 .8rem; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: .82rem; }
.page-hero .breadcrumb-item.active { color: var(--accent); }

/* ---------- 6. Stats strip ---------- */
.stats-strip { margin-top: -3.2rem; position: relative; z-index: 2; }
.stats-card {
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-lg);
  padding: 1.9rem 1rem;
}
.stat-item { text-align: center; }
.stat-item h3 { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin: 0; }
.stat-item h3 span { color: var(--accent); }
.stat-item p { font-size: .82rem; color: var(--ink-soft); margin: .2rem 0 0; font-weight: 500; }

/* ---------- 7. Service cards ---------- */
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-warm);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 58px; height: 58px; border-radius: 1rem;
  display: grid; place-items: center;
  font-size: 1.5rem; color: #fff;
  background: var(--grad);
  margin-bottom: 1.1rem;
}
.svc-icon.warm { background: var(--grad-warm); }
.svc-icon.mint { background: linear-gradient(120deg, #12B8A0, #4ADDC6); }
.svc-card h5 { font-size: 1.05rem; }
.svc-card p { font-size: .87rem; color: var(--ink-soft); margin-bottom: 1rem; }
.svc-link { font-family: var(--f-display); font-size: .85rem; font-weight: 600; color: var(--primary); }
.svc-link i { transition: transform .3s; }
.svc-link:hover i { transform: translateX(5px); }

/* mini service chips (secondary services) */
.chip-card {
  display: flex; align-items: center; gap: .7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: .85rem 1.05rem;
  font-family: var(--f-display); font-size: .85rem; font-weight: 600;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.chip-card i { color: var(--accent); font-size: 1.1rem; }
.chip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

/* ---------- 8. Feature lists / checklists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: .45rem 0 .45rem 2rem;
  color: var(--ink-soft); font-size: .93rem;
}
.check-list li::before {
  content: "\F26E"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: .42rem;
  color: var(--mint); font-size: 1rem;
}

/* ---------- 9. Marg timeline (process) ---------- */
.marg-line { position: relative; padding-left: 2.2rem; }
.marg-line::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px;
  background-image: linear-gradient(var(--primary) 55%, transparent 45%);
  background-size: 2px 12px;
}
.marg-step { position: relative; padding-bottom: 1.7rem; }
.marg-step:last-child { padding-bottom: 0; }
.marg-step::before {
  content: ""; position: absolute; left: -2.2rem; top: .3rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.marg-step h6 { font-size: .98rem; margin-bottom: .25rem; }
.marg-step p { font-size: .86rem; color: var(--ink-soft); margin: 0; }

/* ---------- 10. Pricing ---------- */
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 2.1rem 1.8rem;
  height: 100%;
  transition: transform .35s, box-shadow .35s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; }
.price-card.featured h5, .price-card.featured .price { color: #fff; }
.price-card.featured .check-list li { color: rgba(255,255,255,.8); }
.price-tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--grad-warm); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2rem; padding: .3rem .8rem;
}
.price { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--primary); }
.price small { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- 11. Testimonials ---------- */
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.testi-stars { color: var(--accent); font-size: .85rem; margin-bottom: .8rem; }
.testi-card p { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.testi-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-author strong { font-family: var(--f-display); font-size: .9rem; display: block; }
.testi-author span { font-size: .76rem; color: var(--ink-soft); }

/* ---------- 12. Team ---------- */
.team-card { text-align: center; }
.team-card img {
  width: 100%; height: 270px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: .9rem;
  transition: transform .35s;
}
.team-card:hover img { transform: translateY(-6px); }
.team-card h6 { margin-bottom: .1rem; }
.team-card span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- 13. Blog ---------- */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .35s, box-shadow .35s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-img { overflow: hidden; position: relative; }
.post-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-img img { transform: scale(1.07); }
.post-cat {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--grad-warm); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 2rem; padding: .32rem .8rem;
}
.post-body { padding: 1.3rem 1.4rem 1.5rem; }
.post-meta { font-size: .76rem; color: var(--ink-soft); margin-bottom: .5rem; }
.post-meta i { color: var(--accent); }
.post-body h5 { font-size: 1rem; line-height: 1.45; }
.post-body h5 a { color: var(--ink); transition: color .3s; }
.post-body h5 a:hover { color: var(--primary); }
.post-body p { font-size: .85rem; color: var(--ink-soft); }

/* single post */
.article-body { max-width: 760px; }
.article-body p { color: #3C4566; line-height: 1.85; }
.article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 .9rem; }
.article-body img { border-radius: var(--radius); margin: 1.4rem 0; }
.article-meta { font-size: .84rem; color: var(--ink-soft); }
.article-meta i { color: var(--accent); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background: radial-gradient(700px 300px at 15% 120%, rgba(255, 138, 0, .35), transparent 60%), var(--grad);
  border-radius: 1.6rem;
  color: #fff;
  padding: 3.2rem 2rem;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p, .cta-band > div { opacity: .9; }

/* ---------- 15. Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.contact-card i { font-size: 1.5rem; color: var(--primary); }
.contact-card h6 { margin: .7rem 0 .3rem; }
.contact-card p, .contact-card a { font-size: .88rem; color: var(--ink-soft); margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--primary); }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-lg);
  padding: 2.1rem 1.9rem;
}
.form-panel .form-control, .form-panel .form-select {
  border-radius: .8rem;
  border-color: var(--line);
  padding: .7rem 1rem;
  font-size: .92rem;
}
.form-panel .form-control:focus, .form-panel .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(57, 71, 214, .12);
}
.form-panel .form-label { font-family: var(--f-display); font-weight: 500; font-size: .84rem; }
.form-msg { font-weight: 600; font-size: .86rem; }

.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; min-height: 300px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 5.2rem; z-index: 1500;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 1.6rem;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ---------- 16. FAQ ---------- */
.faq .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: .9rem;
}
.faq .accordion-button {
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  padding: 1.05rem 1.3rem;
  color: var(--ink);
}
.faq .accordion-button:not(.collapsed) { background: var(--bg-soft); color: var(--primary); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { font-size: .88rem; color: var(--ink-soft); }

/* ---------- 17. Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4.2rem 0 0; }
.footer h6 { color: #fff; font-size: .92rem; margin-bottom: 1.1rem; }
.footer p { font-size: .86rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.68); font-size: .85rem; transition: color .3s, padding-left .3s; }
.footer-links a:hover { color: var(--accent); padding-left: .3rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: .7rem;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background .3s, transform .3s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem; padding: 1.2rem 0;
  font-size: .8rem;
}

/* ---------- 18. Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1500;
  width: 46px; height: 46px; border-radius: .9rem;
  border: 0;
  background: var(--grad);
  color: #fff; font-size: 1.1rem;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(57, 71, 214, .4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 19. Accessibility & motion ---------- */
a:focus-visible, button:focus-visible { outline: 3px solid rgba(57, 71, 214, .45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 6rem; }
  .path-card:nth-child(2), .path-card:nth-child(3) { margin-left: 0; }
  .navbar-collapse {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.2rem;
    margin-top: .7rem;
  }
}
@media (max-width: 575.98px) {
  .stats-strip { margin-top: -2.2rem; }
  .stat-item h3 { font-size: 1.5rem; }
}
