@font-face {
  font-family: SadraSans;
  src: url("../fonts/yekan.woff") format("woff"),
       url("../fonts/yekan.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --ink: #334155;
  --ink-soft: #64748b;
  --ink-heading: #1a8a9c;
  --slate: #1a8a9c;
  --slate-deep: #167d8e;
  --on-slate: #ffffff;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: rgba(26, 138, 156, 0.14);
  --orange: #ff5e1f;
  --orange-deep: #e04e12;
  --cyan: #1a8a9c;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: SadraSans, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.95;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: SadraSans, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink-heading);
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.stats-grid strong {
  font-family: SadraSans, "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  color: var(--on-slate);
  background: var(--slate);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--on-slate);
  background: var(--slate-deep);
  box-shadow: 0 8px 24px rgba(22, 125, 142, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  padding: 1px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.3;
}

.brand small {
  opacity: 0.72;
  font-size: 12px;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.site-nav a:hover,
.site-header.is-scrolled .site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--ink);
  overflow: hidden;
  margin-top: -76px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: #f4f6f8 url("../images/bi-sales-overview.png") center / cover no-repeat;
  transform: scale(1.04);
}

.hero-shade {
  background: rgba(244, 246, 248, 0.86);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  padding-block: 140px 80px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--slate);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 16px;
  line-height: 1.3;
  font-size: clamp(22px, 2.4vw, 32px);
  white-space: nowrap;
}

.section-head h2,
.about-grid h2,
.contact-grid h2 {
  margin: 0 0 16px;
  line-height: 1.3;
  font-size: clamp(20px, 2vw, 26px);
  white-space: nowrap;
}

.work-card h3,
.service-card h3,
.cert-card h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--slate);
}

.hero-copy p,
.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 62ch;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-copy {
  min-height: 180px;
}

.hero-copy[hidden] {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--slate);
  box-shadow: 0 10px 22px rgba(26, 138, 156, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  color: var(--ink-heading);
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.btn-ghost:hover {
  border-color: var(--slate);
  color: var(--slate-deep);
  background: #fff;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 138, 156, 0.28);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--slate);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.scroll-hint span {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.stats {
  background: var(--slate);
  color: var(--on-slate);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 0;
}

.stats-grid strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  unicode-bidi: isolate;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  width: 100%;
  max-width: none;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.cert-grid,
.service-grid,
.work-grid {
  display: grid;
  gap: 20px;
}

.cert-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-grid,
.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.cert-card,
.service-card,
.work-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover,
.service-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.1);
}

.cert-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 16px;
  min-height: 100%;
}

.cert-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  padding: 10px 10px 0;
  flex-shrink: 0;
}

.cert-card h3 {
  margin: 14px 14px 6px;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.cert-card span {
  margin: auto 14px 0;
  color: var(--slate);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card h3,
.work-card h3 {
  margin: 16px 20px 4px;
  font-size: 18px;
}

.about-copy p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.95;
  text-align: justify;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.service-card {
  overflow: hidden;
  padding: 0;
}

.service-media {
  position: relative;
}

.service-card img {
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.service-card .service-icon {
  position: absolute;
  right: 18px;
  bottom: -18px;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--slate);
  box-shadow: 0 8px 18px rgba(26, 138, 156, 0.28);
}

.service-card .service-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.service-body {
  padding: 28px 24px 24px;
}

.service-card h3 {
  margin: 0 0 8px;
}

.work-card {
  overflow: hidden;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: right;
}

.work-card img,
.work-shot img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.work-card--ui img {
  object-fit: contain;
  object-position: center;
  background: #f4f6f8;
}

.work-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.work-card p {
  color: var(--ink-soft);
}

.work-card > div {
  padding: 16px 20px 20px;
}

.work-extra {
  margin-top: 12px;
}

.work-extra p {
  margin: 0 0 10px;
}

.work-extra ul {
  margin: 0;
  padding-inline: 18px;
}

.work-extra li + li {
  margin-top: 6px;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 14px;
}

.work-toggle,
.work-actions a {
  border: 0;
  padding: 0;
  background: none;
  color: var(--slate);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.work-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.work-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.work-thumbs img {
  height: 64px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.work-card p,
.service-card p {
  margin: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.dash-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: right;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.dash-card.is-featured {
  grid-row: span 2;
}

.dash-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: top;
}

.dash-card.is-featured img {
  min-height: 420px;
}

.dash-card span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 16px;
  color: #fff;
  background: rgba(11, 18, 32, 0.88);
  font-size: 15px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 18, 32, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.contact-list {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.contact-list li + li {
  margin-top: 8px;
}

.contact-grid iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.form-note {
  display: none;
  margin: 0;
  color: var(--ink-soft);
}

.form-note.is-visible {
  display: block;
}

.site-footer {
  background: var(--slate);
  color: var(--on-slate);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero-copy h1,
  .section-head h2,
  .about-grid h2,
  .contact-grid h2 {
    white-space: normal;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .stats-grid,
  .about-grid,
  .cert-grid,
  .service-grid,
  .work-grid,
  .dash-grid,
  .contact-grid,
  .footer-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-card img {
    height: 220px;
  }

  .dash-card.is-featured {
    grid-row: auto;
  }

  .dash-card.is-featured img {
    min-height: 220px;
  }

  .hero-copy {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}
