/* ==========================================================
   Zencraft Labs — site styles
   ========================================================== */

:root {
  --ink: #16263c;
  --ink-soft: #51617a;
  --paper: #f8fafd;
  --paper-alt: #edf3fb;
  --card: #ffffff;
  --accent: #2077e4;
  --accent-deep: #1259b3;
  --accent-soft: #d9e8fb;
  --line: #dbe5f1;
  --radius: 18px;
  --font-display: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: inline-block;
}

.brand-divider {
  width: 3px;
  height: 26px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent-deep);
}

/* ---------- Language switcher ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%232077e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  transition: background-color 0.2s ease;
}

[dir="rtl"] .lang-switch select {
  padding: 7px 14px 7px 30px;
  background-position: left 12px center;
}

.lang-switch select:hover {
  background-color: var(--accent-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 110px 130px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.hero-circle {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 70px solid var(--accent-soft);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 90px;
}

.section-alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 40px;
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(31, 42, 39, 0.08);
}

.product-card h3 {
  font-size: 1.5rem;
}

.product-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
}

.product-card p {
  color: var(--ink-soft);
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.product-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.product-card-soon {
  background: transparent;
  border-style: dashed;
}

.product-card-soon:hover {
  transform: none;
  box-shadow: none;
}

.product-icon-soon {
  background: transparent;
  border: 1.5px dashed var(--accent);
}

.link-arrow {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Services / 4-week timeline ---------- */

.services-lede {
  margin-bottom: 56px;
}

.timeline-eyebrow {
  margin-bottom: 34px;
}

.tl {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

/* connector line through the markers */
.tl::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: calc(12.5% - 15px);
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    var(--accent) 0 10px,
    transparent 10px 20px
  );
  opacity: 0.45;
}

.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.tl-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--paper-alt), 0 8px 20px rgba(32, 119, 228, 0.35);
}

.tl-marker svg {
  width: 26px;
  height: 26px;
}

.tl-week {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

:lang(ar) .tl-week {
  letter-spacing: 0;
}

.tl-step h3 {
  font-size: 1.18rem;
}

.tl-step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.tl-get {
  margin-top: auto;
  background: var(--accent-soft);
  color: var(--accent-deep) !important;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem !important;
  font-weight: 600;
}

.services-cta {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.services-fine {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .tl {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tl::before {
    top: 28px;
    bottom: 28px;
    height: auto;
    width: 3px;
    inset-inline: auto;
    inset-inline-start: 26px;
    background: repeating-linear-gradient(
      to bottom,
      var(--accent) 0 10px,
      transparent 10px 20px
    );
  }

  .tl-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    row-gap: 8px;
    text-align: start;
    align-items: start;
  }

  .tl-marker {
    grid-column: 1;
    grid-row: 1 / span 4;
    box-shadow: 0 0 0 6px var(--paper-alt);
  }

  .tl-step .tl-week,
  .tl-step h3,
  .tl-step p {
    grid-column: 2;
  }

  .tl-step .tl-week {
    margin-top: 0;
    align-self: center;
  }
}

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-inner h2 {
  margin-bottom: 0;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 38em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--accent-deep);
}

.contact-card p {
  color: var(--ink-soft);
}

.contact-card a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding-block: 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 8px;
}

.footer-legal {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ---------- RTL & Arabic ---------- */

[dir="rtl"] .hero-circle {
  right: auto;
  left: -160px;
}

[dir="rtl"] .link-arrow span[aria-hidden="true"] {
  display: inline-block;
  transform: scaleX(-1);
}

:lang(ar) body,
body:lang(ar) {
  font-family: "Tajawal", var(--font-body);
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) .eyebrow,
:lang(ar) .btn,
:lang(ar) .site-nav a,
:lang(ar) .product-tag,
:lang(ar) .footer-tagline,
:lang(ar) .footer-legal,
:lang(ar) p,
:lang(ar) a {
  font-family: "Tajawal", var(--font-body);
}

:lang(ar) .eyebrow,
:lang(ar) .product-tag {
  letter-spacing: 0;
}

:lang(ar) .brand-name {
  font-family: var(--font-display);
}

.address-text {
  text-align: start;
}

[dir="rtl"] .address-text {
  text-align: end;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    padding-block: 12px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero {
    padding-block: 70px 90px;
  }

  .hero-circle {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-nav {
    gap: 18px;
  }

  .section {
    padding-block: 64px;
  }
}
