/* CANONICAL_FRONTEND_THEME_V2 */
:root{
  --fr-bg:#eef4fb;
  --fr-surface:#ffffff;
  --fr-text:#0f172a;
  --fr-muted:#64748b;
  --fr-line:#dbe5f0;
  --fr-brand:#2563eb;
  --fr-brand-2:#5b5ff4;
  --fr-dark:#101b2d;
  --fr-shadow:0 16px 44px rgba(15,23,42,.075),0 4px 16px rgba(15,23,42,.045);
  --fr-radius:18px;
  --fr-radius-lg:30px;
  --fr-max:1180px;
}

body.frontend-theme{
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.055), transparent 28%),
    linear-gradient(180deg,#f7fbff,#edf4fb) !important;
  color:var(--fr-text) !important;
  overflow-x:hidden;
}

body.frontend-theme,
body.frontend-theme *{
  box-sizing:border-box;
}

body.frontend-theme img,
body.frontend-theme svg,
body.frontend-theme video{
  max-width:100%;
  height:auto;
}

body.frontend-theme main,
body.frontend-theme .container,
body.frontend-theme .wrap,
body.frontend-theme .content{
  width:min(var(--fr-max),calc(100% - 32px)) !important;
  max-width:var(--fr-max) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Header */
body.frontend-theme header,
body.frontend-theme .site-header,
body.frontend-theme nav{
  background:rgba(255,255,255,.88) !important;
  backdrop-filter:blur(14px);
  border-bottom:1px solid #e6eef8 !important;
}

body.frontend-theme h1,
body.frontend-theme h2,
body.frontend-theme h3{
  color:#0f172a !important;
  letter-spacing:-.035em;
}

body.frontend-theme p,
body.frontend-theme small,
body.frontend-theme .muted,
body.frontend-theme .subtitle{
  color:var(--fr-muted) !important;
}

/* Hero */
body.frontend-theme .home-hero{
  width:min(1120px,100%) !important;
  max-width:1120px !important;
  margin:30px auto 54px !important;
  padding:28px !important;
  border-radius:var(--fr-radius-lg) !important;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 32%),
    linear-gradient(135deg,#ffffff,#f7fbff) !important;
  border:1px solid var(--fr-line) !important;
  box-shadow:var(--fr-shadow) !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(260px,340px) !important;
  gap:20px !important;
  align-items:stretch !important;
}

body.frontend-theme .home-hero .hero-main{
  min-height:270px !important;
  padding:30px !important;
  border-radius:24px !important;
  background:#fff !important;
  border:1px solid #e4edf7 !important;
  box-shadow:0 12px 32px rgba(15,23,42,.055) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

body.frontend-theme .home-hero h1{
  font-size:clamp(2.35rem,4vw,4.15rem) !important;
  line-height:1.01 !important;
  letter-spacing:-.055em !important;
  margin:0 0 14px !important;
  max-width:720px !important;
}

body.frontend-theme .home-hero p{
  font-size:1rem !important;
  line-height:1.65 !important;
  max-width:660px !important;
}

body.frontend-theme .home-hero .hero-kpis{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
  align-content:start !important;
  margin:0 !important;
  width:100% !important;
}

body.frontend-theme .home-hero .hero-kpi{
  min-height:82px !important;
  padding:16px !important;
  border-radius:18px !important;
  background:#fff !important;
  border:1px solid #e0e9f5 !important;
  box-shadow:0 10px 26px rgba(15,23,42,.055) !important;
}

body.frontend-theme .home-hero .hero-kpi strong{
  display:block !important;
  font-size:1.65rem !important;
  line-height:1 !important;
}

body.frontend-theme .home-hero .hero-kpi span{
  color:var(--fr-muted) !important;
  font-weight:700 !important;
}

/* Sections */
body.frontend-theme section{
  padding:48px 0 !important;
}

body.frontend-theme .theme-section-title{
  margin-bottom:18px !important;
}

body.frontend-theme .theme-eyebrow,
body.frontend-theme .eyebrow{
  display:block;
  margin-bottom:7px;
  color:#2563eb !important;
  font-size:.75rem !important;
  font-weight:900 !important;
  text-transform:uppercase;
  letter-spacing:.1em;
}

/* Grids */
body.frontend-theme .theme-card-grid,
body.frontend-theme .services-grid,
body.frontend-theme .packages-grid,
body.frontend-theme .article-grid,
body.frontend-theme .partners-grid,
body.frontend-theme .theme-home-services .grid,
body.frontend-theme .theme-home-packages .grid,
body.frontend-theme .theme-home-posts .grid,
body.frontend-theme .theme-home-partners .grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr)) !important;
  gap:18px !important;
}

body.frontend-theme .service-card,
body.frontend-theme .package-card,
body.frontend-theme .article-card,
body.frontend-theme .partner-card,
body.frontend-theme .card,
body.frontend-theme article{
  background:#fff !important;
  border:1px solid var(--fr-line) !important;
  border-radius:18px !important;
  box-shadow:var(--fr-shadow) !important;
  transform:none !important;
}

body.frontend-theme .service-card{
  min-height:136px !important;
  padding:18px !important;
}

body.frontend-theme .package-card,
body.frontend-theme .article-card,
body.frontend-theme .partner-card{
  padding:20px !important;
}

body.frontend-theme .service-card h3,
body.frontend-theme .service-card h4{
  font-size:1rem !important;
  line-height:1.32 !important;
  margin-bottom:8px !important;
}

body.frontend-theme .service-card p,
body.frontend-theme .article-card p,
body.frontend-theme .partner-card p{
  color:var(--fr-muted) !important;
  line-height:1.55 !important;
}

/* CTA */
body.frontend-theme .cta-banner,
body.frontend-theme .theme-cta,
body.frontend-theme .theme-home-cta{
  background:
    radial-gradient(circle at top right, rgba(96,165,250,.13), transparent 34%),
    linear-gradient(135deg,#0f172a,#1e293b) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:28px !important;
  padding:34px !important;
  min-height:210px !important;
  box-shadow:0 24px 58px rgba(15,23,42,.24) !important;
}

body.frontend-theme .cta-banner *,
body.frontend-theme .theme-cta *,
body.frontend-theme .theme-home-cta *{
  color:#fff !important;
}

body.frontend-theme .cta-banner div,
body.frontend-theme .cta-banner p,
body.frontend-theme .theme-cta div,
body.frontend-theme .theme-cta p,
body.frontend-theme .theme-home-cta div,
body.frontend-theme .theme-home-cta p{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

body.frontend-theme .cta-banner a,
body.frontend-theme .theme-cta a,
body.frontend-theme .theme-home-cta a{
  display:inline-flex !important;
  width:max-content !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  padding:12px 16px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-weight:900 !important;
  text-decoration:none !important;
}

/* Taxonomy sidebar */
body.frontend-theme .theme-taxonomy-row{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
  gap:16px !important;
  margin:30px 0 0 !important;
  width:100% !important;
}

body.frontend-theme .sidebar,
body.frontend-theme aside.sidebar,
body.frontend-theme .sidebar-card,
body.frontend-theme .front-side-widget,
body.frontend-theme .theme-taxonomy-widget{
  position:static !important;
  top:auto !important;
  width:100% !important;
  max-width:none !important;
  background:#fff !important;
  border:1px solid var(--fr-line) !important;
  border-radius:18px !important;
  box-shadow:var(--fr-shadow) !important;
  padding:18px !important;
}

body.frontend-theme .tag-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

body.frontend-theme .tag-cloud a{
  display:inline-flex;
  border-radius:999px;
  padding:7px 10px;
  background:#f1f7ff;
  color:#1d4ed8;
  font-weight:800;
  text-decoration:none;
}

/* Footer */
body.frontend-theme footer,
body.frontend-theme .site-footer{
  margin-top:58px !important;
  background:rgba(255,255,255,.74) !important;
  border-top:1px solid #e6eef8 !important;
}

body.frontend-theme footer > *,
body.frontend-theme .site-footer > *{
  width:min(var(--fr-max),calc(100% - 32px)) !important;
  max-width:var(--fr-max) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Desktop tuning */
@media (min-width:1180px){
  body.frontend-theme .home-services .theme-card-grid,
  body.frontend-theme .home-services .services-grid,
  body.frontend-theme .theme-home-services .grid{
    grid-template-columns:repeat(3,minmax(250px,1fr)) !important;
  }

  body.frontend-theme .home-partners .theme-card-grid,
  body.frontend-theme .home-partners .partners-grid,
  body.frontend-theme .theme-home-partners .grid{
    grid-template-columns:repeat(4,minmax(180px,1fr)) !important;
  }
}

@media (max-width:900px){
  body.frontend-theme main,
  body.frontend-theme .container,
  body.frontend-theme .wrap,
  body.frontend-theme .content{
    width:min(100%,calc(100% - 20px)) !important;
  }

  body.frontend-theme .home-hero{
    grid-template-columns:1fr !important;
    padding:20px !important;
  }

  body.frontend-theme .home-hero .hero-main{
    min-height:auto !important;
    padding:22px !important;
  }

  body.frontend-theme .home-hero .hero-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:640px){
  body.frontend-theme .home-hero{
    margin-top:18px !important;
    padding:16px !important;
    border-radius:24px !important;
  }

  body.frontend-theme .home-hero h1{
    font-size:2.08rem !important;
  }

  body.frontend-theme .home-hero .hero-kpis{
    grid-template-columns:1fr !important;
  }

  body.frontend-theme .theme-card-grid,
  body.frontend-theme .services-grid,
  body.frontend-theme .packages-grid,
  body.frontend-theme .article-grid,
  body.frontend-theme .partners-grid{
    grid-template-columns:1fr !important;
  }

  body.frontend-theme section{
    padding:34px 0 !important;
  }

  body.frontend-theme .cta-banner,
  body.frontend-theme .theme-cta,
  body.frontend-theme .theme-home-cta{
    padding:24px !important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.frontend-theme *,
  body.frontend-theme *::before,
  body.frontend-theme *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}
