/* ==========================================================================
   Karyantra Technologies - Main stylesheet
   Colours are taken from the logo: deep navy tile, electric blue swoosh, cyan dot.
   Edit the variables below to re-theme the whole site.
   ========================================================================== */
:root {
  --navy: #0B1F3A;
  --navy-2: #102B4E;
  --blue: #087CF0;
  --blue-dark: #0663C2;
  --cyan: #12C6C0;
  --white: #FFFFFF;
  --bg: #F5F8FC;
  --text: #263445;
  --muted: #5C6B7E;
  --line: #E1E8F1;
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { overflow-x: hidden; font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .brand-font { font-family: 'Poppins', 'Inter', sans-serif; color: var(--navy); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(8, 124, 240, .45); outline-offset: 2px; border-radius: 6px; }
.section { padding: 72px 0; }
.section.section-cta { padding-top: 0; padding-bottom: 72px; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--grad-navy); color: #C9D6E8; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-title { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-title h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-title p { color: var(--muted); margin: 0; }
.section-dark .section-title p { color: #A9BBD3; }
.kicker { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.section-dark .kicker { color: var(--cyan); }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { font-family: 'Poppins', sans-serif; font-weight: 500; border-radius: 12px; padding: .72rem 1.5rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-brand { background: var(--grad-brand); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(8, 124, 240, .28); }
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8, 124, 240, .36); }
.btn-outline-light-x { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-light-x:hover { background: #fff; color: var(--navy); }
.btn-outline-brand { border: 1.5px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline-brand:hover { background: var(--blue); color: #fff; }
.btn-lg { padding: .9rem 1.8rem; }

/* ---------- Header / navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 31, 58, .08); border-color: var(--line); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.navbar-brand img { height: 46px; width: auto; display: block; }
.navbar .nav-link { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .93rem; color: var(--navy); padding: .5rem .85rem !important; position: relative; }
.navbar .nav-link::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: 2px; height: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--blue); }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bars, .toggler-bars::before, .toggler-bars::after { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, background .25s; }
.toggler-bars { position: relative; }
.toggler-bars::before, .toggler-bars::after { content: ''; position: absolute; left: 0; }
.toggler-bars::before { top: -7px; } .toggler-bars::after { top: 7px; }
.navbar-toggler[aria-expanded="true"] .toggler-bars { background: transparent; }
.navbar-toggler[aria-expanded="true"] .toggler-bars::before { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-navy); color: #C9D6E8; padding: 80px 0 96px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero::after { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(8,124,240,.38), transparent 65%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
.hero p.lead { color: #B7C7DD; font-size: 1.1rem; max-width: 560px; margin-bottom: 32px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; background: rgba(18, 198, 192, .12); color: var(--cyan); font-size: .85rem; font-weight: 500; margin-bottom: 22px; border: 1px solid rgba(18, 198, 192, .3); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.page-hero { position: relative; overflow: hidden; background: var(--grad-navy); padding: 56px 0 52px; color: #B7C7DD; }
.page-hero::after { content: ''; position: absolute; width: 480px; height: 480px; right: -120px; top: -220px; background: radial-gradient(circle, rgba(8,124,240,.4), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0; font-size: 1.05rem; }
.breadcrumb { --bs-breadcrumb-divider-color: #7F95B3; --bs-breadcrumb-item-active-color: #A9BBD3; font-size: .88rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--cyan); }

/* ---------- Cards ---------- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; height: 100%; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(8, 124, 240, .35); }
.icon-box { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, rgba(8,124,240,.12), rgba(18,198,192,.16)); color: var(--blue); font-size: 1.55rem; margin-bottom: 20px; }
.card-x h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card-x p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.link-more { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }

/* ---------- Feature list / checks ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--cyan); font-size: 1.1rem; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .icon-box { flex: none; margin: 0; width: 50px; height: 50px; font-size: 1.35rem; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Process steps ---------- */
.process { position: relative; }
.process-step { text-align: center; padding: 0 12px; position: relative; }
.step-badge { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.5rem; box-shadow: 0 10px 24px rgba(8, 124, 240, .3); position: relative; z-index: 1; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (min-width: 992px) { .process-step:not(:last-child)::after { content: ''; position: absolute; top: 38px; left: calc(50% + 48px); width: calc(100% - 96px); border-top: 2px dashed #B9CCE3; } }

/* ---------- Stats strip ---------- */
.stats-strip { margin-top: -48px; position: relative; z-index: 5; }
.stats-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px 12px; border: 1px solid var(--line); }
.stat { text-align: center; padding: 8px 12px; }
.stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 2rem; color: var(--blue); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Split feature blocks ---------- */
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; border: 1px solid var(--line); }
.split-img img { display: block; width: 100%; height: auto; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 30px; background: rgba(8,124,240,.1); color: var(--blue); font-size: .82rem; font-weight: 500; margin: 0 6px 8px 0; }
.note-box { border-left: 4px solid var(--cyan); background: rgba(18, 198, 192, .08); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: .93rem; color: var(--navy); }
.note-box.warn { border-color: #F2A100; background: rgba(242, 161, 0, .09); }

/* ---------- Service blocks (services.html) ---------- */
.service-block { padding: 44px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 { font-size: 1.7rem; }
.service-panel { background: var(--bg); border-radius: var(--radius); padding: 28px; height: 100%; }
.service-panel h3 { font-size: 1rem; margin-bottom: 14px; }
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.service-nav a { padding: 8px 16px; border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: .88rem; font-weight: 500; }
.service-nav a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.form-label { font-weight: 500; font-size: .9rem; color: var(--navy); }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--line); padding: .7rem 1rem; color: var(--text); background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .25rem rgba(8, 124, 240, .14); }
.form-text { font-size: .8rem; }
.btn-loading .btn-label { visibility: hidden; }
.btn-loading { position: relative; pointer-events: none; opacity: .9; }
.btn-loading::after { content: ''; position: absolute; width: 20px; height: 20px; left: calc(50% - 10px); top: calc(50% - 10px); border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .icon-box { flex: none; margin: 0; width: 48px; height: 48px; font-size: 1.25rem; }
.contact-item h3 { font-size: .98rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .93rem; }
.editable { background: rgba(242, 161, 0, .14); padding: 0 6px; border-radius: 6px; color: #7A5200; font-weight: 500; }

/* ---------- FAQ / accordion ---------- */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: 0 0 0 .22rem rgba(8, 124, 240, .15); --bs-accordion-active-bg: rgba(8, 124, 240, .06); --bs-accordion-active-color: var(--blue); }
.accordion-item { border-radius: var(--radius-sm) !important; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm); }
.accordion-button { font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--navy); padding: 1.15rem 1.4rem; }
.accordion-body { color: var(--muted); padding: 1.1rem 1.4rem 1.4rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-navy); border-radius: 26px; padding: 48px 32px; text-align: center; color: #B7C7DD; }
.cta-band::before { content: ''; position: absolute; width: 380px; height: 380px; left: -100px; bottom: -200px; background: radial-gradient(circle, rgba(18,198,192,.35), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #A9BBD3; padding: 60px 0 0; font-size: .94rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #A9BBD3; }
.site-footer a:hover { color: var(--cyan); }
.footer-logo { width: 150px; height: auto; border-radius: 28px; margin-bottom: 16px; display: block; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.social a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); margin-right: 8px; color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0; font-size: .87rem; }

/* ---------- Scroll to top + reveal ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--grad-brand); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 22px rgba(8,124,240,.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s; z-index: 1000; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Top info bar + map ---------- */
.topbar { background: #07162B; color: #B7C7DD; font-size: .82rem; padding: 7px 0; }
.topbar a { color: #C9D6E8; }
.topbar a:hover { color: var(--cyan); }
.topbar i { color: var(--cyan); margin-right: 6px; }
.map-wrap { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.section-title:last-child, .section > .container > .row:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 16px 26px; height: 100%; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { width: 176px; height: 176px; margin: 0 auto 18px; padding: 5px; border-radius: 50%; background: var(--grad-brand); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; border: 4px solid #fff; display: block; background: var(--bg); }
.team-card h3 { font-size: 1.08rem; margin-bottom: 8px; line-height: 1.3; }
.team-role { display: inline-block; padding: 4px 14px; border-radius: 30px; background: rgba(8, 124, 240, .1); color: var(--blue); font-size: .82rem; font-weight: 500; line-height: 1.4; }
