/* ==========================================================================
   Yazhi Software — global styles
   ========================================================================== */

:root {
  --primary: #0b5cf0;
  --primary-dark: #0848c2;
  --primary-soft: #eaf1ff;
  --navy: #0a1733;
  --navy-2: #0f2149;
  --ink: #111a2e;
  --text: #4a5468;
  --muted: #7a8396;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fe;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(16, 32, 72, 0.06);
  --shadow: 0 12px 32px rgba(16, 32, 72, 0.10);

  --container: 1200px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11, 92, 240, .25); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { display: block; width: auto; height: 60px; }
.logo--light img { height: 66px; }
@media (max-width: 960px) {
  .logo img { height: 48px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on .site-header itself would
   become the containing block for the fixed mobile menu and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 26px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-link:hover,
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, background .25s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-cta { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 16px 24px 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }

  .mobile-cta { display: flex; justify-content: center; width: 100%; margin-top: 24px; padding: 15px 22px; }
}

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */
.page-banner {
  position: relative;
  padding: 72px 0 80px;
  background:
    radial-gradient(800px 300px at 85% 0%, rgba(11, 92, 240, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  overflow: hidden;
}
.page-banner::after {
  /* dotted accent like the reference */
  content: "";
  position: absolute;
  right: 6%;
  top: 40px;
  width: 160px; height: 100px;
  background-image: radial-gradient(var(--primary) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: .25;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--primary); font-weight: 500; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.page-banner h1 {
  max-width: 720px;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
}
.page-banner p {
  max-width: 620px;
  margin-top: 16px;
  font-size: 17px;
}

/* ---------- Generic section ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

/* Placeholder used while page content is being built */
.placeholder {
  padding: 56px 24px;
  border: 1.5px dashed #c9d5ee;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: #fff;
}


/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  padding: 56px 0;
  color: #d4def3;
  background:
    linear-gradient(90deg, rgba(10, 23, 51, 0.96) 0%, rgba(13, 38, 92, 0.92) 100%),
    radial-gradient(600px 240px at 90% 50%, rgba(11, 92, 240, 0.5), transparent 70%);
  background-color: var(--navy);
  overflow: hidden;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.cta-band p { margin-top: 10px; max-width: 520px; }

@media (max-width: 760px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #a9b4cc;
  font-size: 14.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.1fr;
  gap: 48px;
  padding-block: 64px 48px;
}
.footer-about p { margin: 18px 0 22px; max-width: 320px; line-height: 1.7; }

.footer-title {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a { transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: #c9d3e8;
  transition: background .2s, color .2s;
}
.social a:hover { background: var(--primary); color: #fff; }
.social svg { width: 17px; height: 17px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-list li + li { margin-top: 14px; }
.contact-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: #fff; }
.contact-list a:hover { color: #fff; }
.footer-contact .btn { margin-top: 24px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}
.footer-legal { display: flex; align-items: center; gap: 12px; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { opacity: .4; }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
  .page-banner { padding: 52px 0 60px; }
}

/* ==========================================================================
   Section heading (centered) — reused across pages
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
}
.section-head p {
  margin-top: 14px;
  font-size: 17px;
}

/* ==========================================================================
   Solution / service cards — reused on Home and Services
   ========================================================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: 14px;
}
.solution-icon svg { width: 28px; height: 28px; }
.icon-blue   { background: #e8f0ff; color: var(--primary); }
.icon-green  { background: #e3f7ec; color: #16a34a; }
.icon-purple { background: #efeafe; color: #7c3aed; }
.icon-orange { background: #fff0e3; color: #f97316; }

.solution-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.solution-card p {
  flex: 1;
  margin: 12px 0 22px;
  font-size: 15px;
  line-height: 1.65;
}
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
}
.learn-more svg { width: 15px; height: 15px; transition: transform .2s; }
.learn-more:hover svg { transform: translateX(4px); }

@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .solution-grid { grid-template-columns: 1fr; gap: 16px; }
  .solution-card { padding: 26px 22px 24px; }
}

/* ==========================================================================
   Check list (blue tick bullets) — reused across pages
   ========================================================================== */
.check-list { margin: 28px 0 36px; }
.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li + li { margin-top: 14px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Dotted decoration used inside scalable mockup stages (sized in em) */
.dots {
  position: absolute;
  background-image: radial-gradient(var(--primary) 1.3px, transparent 1.5px);
  background-size: 1.8em 1.8em;
  opacity: .28;
}

/* ==========================================================================
   Header dropdown (Services)
   ========================================================================== */
.nav-item { position: relative; }
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.nav-drop-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.has-dropdown.is-open .nav-drop-toggle svg { transform: rotate(180deg); }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background .2s;
}
.dropdown-link:hover,
.dropdown-link.is-active { background: var(--bg-soft); }
.dropdown-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
}
.dropdown-icon svg { width: 21px; height: 21px; }
.dropdown-link b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.dropdown-link small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.dropdown-link.is-active b { color: var(--primary); }

/* Desktop: floating panel */
@media (min-width: 961px) {
  .dropdown {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    width: 340px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .dropdown::before {
    /* invisible bridge so the pointer can travel from the link to the panel */
    content: "";
    position: absolute;
    left: 0; right: 0; top: -14px;
    height: 14px;
  }
  .has-dropdown.is-open .dropdown,
  .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
@media (min-width: 961px) and (hover: hover) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dropdown:hover .nav-drop-toggle svg { transform: rotate(180deg); }
}

/* Mobile menu: accordion */
@media (max-width: 960px) {
  .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 17px;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .dropdown { display: none; padding: 8px 0 8px; border-bottom: 1px solid var(--line); }
  .has-dropdown.is-open .dropdown { display: block; }
}

/* ==========================================================================
   FAQ (native <details> accordion) — reusable
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 64px;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.faq-intro > p { margin-top: 16px; font-size: 17px; line-height: 1.7; }

.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
}
.help-card b { font-size: 17px; color: var(--ink); }
.help-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.help-line svg { width: 18px; height: 18px; color: var(--primary); }
.help-line:hover { color: var(--primary); }
.help-card .btn { margin-top: 6px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item[open] { border-color: #c9d8f7; box-shadow: var(--shadow-sm); }
.faq-item summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  /* plus / minus icon */
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cf0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s, background-color .25s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  padding: 0 24px 22px;
  font-size: 15.5px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-intro { position: static; }
}
@media (max-width: 560px) {
  .faq-item summary { padding: 18px 54px 18px 18px; font-size: 15.5px; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 18px 18px; font-size: 15px; }
}
