/* Satva Technology: building blocks for the pages filled from the admin panel
   (Technology, Industry Solutions, Our Work case studies, About Satva, legal pages, contact socials).
   Loaded on every inner page through sv_info_css() in page-parts.php. Uses the colours from satva-header-footer.css. */

/* ---------- Header: nine menu items need a tighter bar on laptop screens ---------- */
.sv-nav__link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1499px) {
  .sv-header__bar { gap: 16px; }
  .sv-nav__list { gap: 0; }
  .sv-nav__link { padding: 9px 8px; font-size: 14px; }
  .sv-nav__toggle { width: 20px; margin-right: 2px; }
  .sv-header__actions .sv-btn { padding-left: 16px; padding-right: 16px; font-size: 14px; }
}

/* Mobile menu: when closed it waits off-screen on the right; hide it fully so its shadow does not
   show at the screen edge and the page cannot scroll sideways */
@media (max-width: 1199px) {
  body { overflow-x: clip; }
  .sv-nav:not(.is-open) { visibility: hidden; box-shadow: none; transition: transform 0.35s ease, visibility 0s linear 0.35s; }
  .sv-nav.is-open { visibility: visible; transition: transform 0.35s ease; }
}

/* ---------- Top bar (topbar.php, above the header on every page) ---------- */
.sv-topbar { background: var(--sv-primary); color: #c9d6e6; font: 400 13px/1.4 var(--sv-font); position: relative; z-index: 9991; }
.sv-topbar__inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sv-topbar__contact, .sv-topbar__end { display: flex; align-items: center; gap: 22px; min-width: 0; }
.sv-topbar a, .sv-topbar__hours { display: inline-flex; align-items: center; gap: 7px; color: #c9d6e6; text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.sv-topbar a:hover { color: #fff; }
.sv-topbar svg { width: 15px; height: 15px; flex-shrink: 0; color: #7fb6e6; }
.sv-topbar__msg { position: relative; padding-left: 12px; color: #fff; font-weight: 500; white-space: nowrap; }
.sv-topbar__msg::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.sv-topbar__social { display: inline-flex; gap: 4px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.sv-topbar__social a { width: 26px; height: 26px; justify-content: center; border-radius: 50%; }
.sv-topbar__social a:hover { background: rgba(255, 255, 255, 0.1); }
.sv-topbar__social svg { width: 14px; height: 14px; fill: currentColor; color: inherit; }
@media (max-width: 1024px) { .sv-topbar__hours { display: none; } }
@media (max-width: 760px) {
  .sv-topbar__end { display: none; }
  .sv-topbar__inner { justify-content: center; min-height: 36px; padding: 0 16px; }
  .sv-topbar__contact { gap: 18px; }
}
@media (max-width: 420px) { .sv-topbar__contact a:last-child span { display: none; } }   /* email shows as an icon only */

/* ---------- Small shared pieces ---------- */
.svx-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #eaf2fa, #dbeafe); color: var(--sv-accent); font: 700 22px/1 var(--sv-font); overflow: hidden; }
.svx-badge img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.svx-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--sv-accent-dark); text-decoration: none; }
.svx-more:hover { text-decoration: underline; }
.svx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svx-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #33445c; }
.svx-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--sv-accent); }
.svx-rich { font-size: 16.5px; line-height: 1.8; color: #33445c; }
.svx-rich h2 { margin: 34px 0 12px; font: 700 clamp(21px, 2.4vw, 26px)/1.3 var(--sv-font); color: var(--sv-primary); scroll-margin-top: 110px; }
.svx-rich h3 { margin: 26px 0 10px; font: 700 19px/1.35 var(--sv-font); color: var(--sv-primary); }
.svx-rich p { margin: 0 0 16px; }
.svx-rich ul, .svx-rich ol { margin: 0 0 16px; padding-left: 22px; }
.svx-rich li { margin-bottom: 6px; }
.svx-rich img { max-width: 100%; height: auto; border-radius: 12px; }
.svx-rich a { color: var(--sv-accent-dark); }
.svx-rich > :first-child { margin-top: 0; }

/* ---------- About Satva ---------- */
.svx-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.svx-story p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.8; color: #4a5b72; }
.svx-story .svp-h2 { margin-bottom: 20px; }
.svx-photo { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--sv-border); background: #eaf2fa; aspect-ratio: 4 / 3; }
.svx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svx-mv { background: #fff; }
.svx-mv__tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(15, 79, 131, 0.1); color: var(--sv-accent-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.svx-mv h3 { margin: 0 0 10px; }
.svx-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 28px; border: 1px solid var(--sv-border); border-radius: 18px; background: #fff; }
.svx-band h2 { margin: 0 0 6px; font: 700 clamp(21px, 2.4vw, 27px)/1.25 var(--sv-font); color: var(--sv-primary); }
.svx-band p { margin: 0; max-width: 560px; color: #4a5b72; line-height: 1.6; }

/* ---------- Technology ---------- */
.svx-tech-group { margin-top: 44px; scroll-margin-top: 110px; }
.svx-tech-group:first-of-type { margin-top: 28px; }
.svx-tech-group > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; font: 700 clamp(21px, 2.4vw, 26px)/1.3 var(--sv-font); color: var(--sv-primary); }
.svx-tech-group > h2 small { font: 600 13px/1 var(--sv-font); color: #5b6b80; }
.svx-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svx-tech__card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--sv-border); border-radius: 16px; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.svx-tech__card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11, 31, 58, 0.1); }
.svx-tech__card h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--sv-font); color: var(--sv-primary); }
.svx-tech__card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4a5b72; }
.svx-tech__card a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--sv-accent-dark); }

/* ---------- Industry Solutions ---------- */
.svx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.svx-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--sv-border); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.svx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 31, 58, 0.12); }
.svx-card__top { display: flex; align-items: center; gap: 14px; }
.svx-card h2, .svx-card h3 { margin: 0; font: 700 20px/1.3 var(--sv-font); color: var(--sv-primary); }
.svx-card p { margin: 0; font-size: 15px; line-height: 1.65; color: #4a5b72; }
.svx-card small { font-size: 13px; color: #5b6b80; }
.svx-banner { margin: 0 0 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--sv-border); }
.svx-banner img { width: 100%; height: auto; max-height: 460px; object-fit: cover; display: block; }
.svx-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.svx-aside { padding: 26px; border-radius: 16px; border: 1px solid rgba(15, 79, 131, 0.3); background: #f3f8fc; position: sticky; top: 110px; }
.svx-aside h2, .svx-aside h3 { margin: 0 0 16px; font: 700 19px/1.3 var(--sv-font); color: var(--sv-primary); }

/* ---------- Our Work ---------- */
.svx-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; margin-top: 28px; }
.svx-work .sv-card h2 { font-size: 20px; }
.svx-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 0 0 40px; border: 1px solid var(--sv-border); border-radius: 16px; overflow: hidden; background: var(--sv-border); }
.svx-meta div { padding: 18px 20px; background: #fff; }
.svx-meta dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5b6b80; }
.svx-meta dd { margin: 6px 0 0; font-size: 15.5px; font-weight: 600; color: var(--sv-primary); }
.svx-meta dd a { color: var(--sv-accent-dark); }
.svx-psr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svx-psr article { padding: 24px; border: 1px solid var(--sv-border); border-radius: 16px; background: #fff; }
.svx-psr h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sv-accent); }
.svx-psr p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #33445c; }
.svx-psr .is-result { background: var(--sv-primary); border-color: var(--sv-primary); }
.svx-psr .is-result h3 { color: #9fd3ff; }
.svx-psr .is-result p { color: #fff; font-size: 17px; font-weight: 600; }
.svx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svx-gallery a { display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; border: 1px solid var(--sv-border); background: #e8eef5; }
.svx-gallery a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.svx-gallery a:hover img { transform: scale(1.03); }

/* ---------- Article meta (Technology Insights) ---------- */
.svx-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 24px; font-size: 14px; color: #5b6b80; }
.svx-byline strong { color: var(--sv-primary); }

/* ---------- Contact: social links ---------- */
.svx-social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.svx-social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--sv-border); background: #fff; color: var(--sv-primary); font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.2s; }
.svx-social a:hover { border-color: var(--sv-accent); color: var(--sv-accent-dark); }
.svx-social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) {
  .svx-story, .svx-split { grid-template-columns: 1fr; gap: 28px; }
  .svx-aside { position: static; }
  .svx-psr { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .svx-band { padding: 24px 20px; } }

/* ==========================================================
   Update 26 Nov: shared styles for every page
   ========================================================== */

/* ---------- Header and top bar: same on every page (home included) ---------- */
.sv-topbar, .sv-header { font-family: var(--sv-font); }
.sv-header { position: sticky !important; top: 0 !important; background: var(--sv-light) !important; }
.sv-header a, .sv-topbar a { text-decoration: none; }
.sv-header .sv-nav__link { font-size: 15px; font-weight: 500; line-height: 1.4; }
@media (max-width: 1280px) { .sv-header .sv-nav__link { font-size: 14px; } }

/* ---------- Page banner (hero) on every inner page: same look as the Contact Us banner ---------- */
@keyframes svHeroFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(34px, -26px, 0) scale(1.06); } }
body .svs-hero, body .sv-page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 84px;
  color: #fff;
  border-bottom: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(135deg, #0b1f3a 0%, #0b3d68 100%);
}
body .svs-hero::before, body .svs-hero::after,
body .sv-page-hero::before, body .sv-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
body .svs-hero::before, body .sv-page-hero::before { width: 900px; height: 900px; top: -75%; left: -18%; background: rgba(255, 255, 255, 0.1); opacity: 0.5; animation: svHeroFloat 16s ease-in-out infinite; }
body .svs-hero::after,  body .sv-page-hero::after  { width: 720px; height: 720px; bottom: -85%; right: -12%; background: rgba(15, 79, 131, 0.4); opacity: 0.55; animation: svHeroFloat 19s ease-in-out infinite reverse; }
body .svs-hero > .sv-wrap, body .sv-page-hero > .sv-wrap { position: relative; z-index: 1; }
body .svs-hero h1, body .sv-page-hero h1 { color: #fff; font-weight: 800; letter-spacing: -0.025em; }
body .svs-hero .svs-eyebrow, body .sv-page-hero .sv-eyebrow { color: rgba(255, 255, 255, 0.8); font-weight: 700; }
body .svs-hero .svs-lead, body .sv-page-hero .sv-lead { color: #cfe3f5; }
body .svs-hero .svp-crumb { color: rgba(255, 255, 255, 0.7); }
body .svs-hero .svp-crumb a { color: #93c5fd; }
body .svs-hero .svp-link { color: #fff; }
body .svs-hero .sv-btn { background: #1b6aa8; }
body .svs-hero .sv-btn:hover { background: #0f4f83; }
@media (max-width: 860px) { body .svs-hero, body .sv-page-hero { padding: 52px 0 60px; } }
@media (prefers-reduced-motion: reduce) { body .svs-hero::before, body .svs-hero::after, body .sv-page-hero::before, body .sv-page-hero::after { animation: none; } }

/* ---------- Required star: red, close to the label text ---------- */
.wpforms-required-label, .svc-req, .svq-req { color: #ff5c5c !important; font-weight: 700; margin-left: 2px; }

/* ---------- Footer arrow icons (SVG) ---------- */
.sv-footer__arrow { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; flex-shrink: 0; color: var(--sv-muted); }

/* ---------- Scroll to top button (every page, right side) ---------- */
.sv-totop {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9979;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--sv-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.sv-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.sv-totop:hover { background: var(--sv-accent-dark); transform: translateY(-3px); }
.sv-totop:focus-visible { outline: 3px solid rgba(15, 79, 131, 0.45); outline-offset: 3px; }
.sv-totop svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .sv-totop { right: 18px; bottom: 84px; width: 44px; height: 44px; } }

/* ---------- News and Work With Us: message when nothing is added yet ---------- */
.svx-empty { margin: 0; text-align: center; font-size: 16px; color: #4a5b72; }

/* ---------- Header menu: only the current and the hovered item are dark ---------- */
@media (min-width: 1200px) {
  /* current page: light tint */
  .sv-header .sv-nav__row:has(.is-active),
  .sv-header .sv-nav__item > .sv-nav__link.is-active { background: rgba(15, 79, 131, 0.1) !important; }
  .sv-header .sv-nav__row:has(.is-active) > *,
  .sv-header .sv-nav__item > .sv-nav__link.is-active { color: var(--sv-accent-dark) !important; }
  /* hovered item (and the heading of the open list): dark */
  .sv-header .sv-nav__item > .sv-nav__row:hover,
  .sv-header .sv-nav__item:hover > .sv-nav__row,
  .sv-header .sv-nav__item.is-open > .sv-nav__row,
  .sv-header .sv-nav__item > .sv-nav__link:hover { background: var(--sv-accent) !important; }
  .sv-header .sv-nav__item:hover > .sv-nav__row > *,
  .sv-header .sv-nav__item.is-open > .sv-nav__row > *,
  .sv-header .sv-nav__item > .sv-nav__link:hover { color: #fff !important; }

  .sv-header .sv-dropdown a.is-active { background: transparent; }
  .sv-header .sv-dropdown a.is-active strong { color: var(--sv-accent); }
  .sv-header .sv-dropdown a:hover { background: var(--sv-accent) !important; }
  .sv-header .sv-dropdown a:hover :is(strong, small), .sv-header .sv-dropdown__all:hover { color: #fff !important; }

  /* the menu stays open while the pointer travels from the heading to the list */
  .sv-header .sv-dropdown { top: calc(100% + 6px); transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s, visibility 0s linear 0.35s; max-height: calc(100vh - 140px); }
  .sv-header .sv-nav__item:hover > .sv-dropdown, .sv-header .sv-nav__item.is-open > .sv-dropdown { transition-delay: 0s; }
  .sv-header .sv-nav__item:hover ~ .sv-nav__item > .sv-dropdown,
  .sv-header .sv-nav__item:has(~ .sv-nav__item:hover) > .sv-dropdown { opacity: 0; visibility: hidden; transition: none; }
}

/* ---------- Back to top: round button with a scroll progress ring ---------- */
.sv-totop { width: 52px; height: 52px; right: 23px; box-shadow: none; background: transparent !important; isolation: isolate; }
.sv-totop::before { content: ""; position: absolute; inset: 5px; z-index: -1; border-radius: 50%; background: var(--sv-accent); box-shadow: 0 8px 20px rgba(11, 31, 58, 0.3); transition: background 0.2s ease; }
.sv-totop:hover::before { background: var(--sv-accent-dark); }
.sv-totop .sv-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.sv-totop__track { stroke: rgba(15, 79, 131, 0.18); }
.sv-totop__bar { stroke: #3b9ae1; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--sv-progress, 0)); }
.sv-totop .sv-totop__arrow { width: 20px; height: 20px; }
@media (max-width: 640px) { .sv-totop { width: 48px; height: 48px; right: 17px; } }

/* ---------- Top bar on phones: quick links wrap instead of running off the screen ---------- */
@media (max-width: 760px) {
  .sv-topbar__inner { flex-wrap: wrap; row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .sv-topbar__links { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; max-width: 100%; }
}
