/* ============================================================
   AIT-Zaman — corporate site styles
   ============================================================ */

:root {
  --ink: #0f1b2d;
  --muted: #5b6b7f;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --line: #e4ecf4;

  --brand: #0e2a47;
  --brand-700: #123a63;
  --accent: #15b8cf;
  --accent-2: #2f6bed;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow-md: 0 10px 30px rgba(15, 27, 45, .10);
  --maxw: 1160px;
  --header-h: 72px;
  --grad: linear-gradient(135deg, #0e2a47 0%, #143a63 55%, #1f4f8a 100%);

  --ff: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.i18n-loading body { opacity: 0; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  transition: opacity .25s ease;
}
body.nav-open { overflow: hidden; }

h1, h2, h3 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--accent-2); text-decoration: none; }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 8px 20px rgba(47, 107, 237, .28); }
.btn-primary:hover { background: #2a5fd6; box-shadow: 0 10px 26px rgba(47, 107, 237, .36); }
.btn-accent { background: var(--accent); color: #042b31; }
.btn-accent:hover { background: #12a6bc; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15,27,45,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; font-size: 1.18rem; }
.brand .logo { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--brand); }

.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: 4px 9px; border-radius: 999px; line-height: 1;
}
.lang-switch button.active { background: var(--brand); color: #fff; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 360px at 88% -10%, rgba(21,184,207,.30), transparent 60%),
    radial-gradient(440px 340px at 10% 110%, rgba(47,107,237,.28), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 96px); max-width: 800px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(235, 244, 255, .9); font-size: 1.15rem; max-width: 640px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero .eyebrow { color: #7fe3f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.vendors { position: relative; z-index: 1; padding-bottom: clamp(40px, 6vw, 64px); }
.vendors-label { font-size: .82rem; letter-spacing: .04em; color: rgba(220,235,255,.7); margin-bottom: 12px; }
.vendor-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vendor-chips span {
  font-size: .85rem; font-weight: 600; color: #eaf3ff;
  padding: 6px 13px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; background: rgba(255,255,255,.06);
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- services cards (home) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(47,107,237,.35); }
.svc-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-2); background: linear-gradient(135deg, rgba(47,107,237,.12), rgba(21,184,207,.14)); margin-bottom: 12px; }
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin: 0; }
.svc-card p { margin: 0; font-size: .96rem; }
.svc-more { margin-top: 12px; font-weight: 600; font-size: .92rem; color: var(--accent-2); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent); }
.why-card h3 { margin-bottom: 8px; }
.why-card p { margin: 0; font-size: .95rem; }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); background: var(--bg-soft); position: relative; }
.section.soft .step { background: #fff; border: 1px solid var(--line); }
.step-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: -.02em; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .94rem; }

/* ---------- AI block ---------- */
.ai-block { background: var(--grad); color: #fff; border-radius: 22px; padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden; }
.ai-block::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 280px at 92% 10%, rgba(21,184,207,.32), transparent 60%); }
.ai-block > * { position: relative; z-index: 1; }
.ai-block h2 { color: #fff; max-width: 620px; }
.ai-block p { color: rgba(233,243,255,.92); max-width: 640px; }
.ai-block .eyebrow { color: #7fe3f0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .inner { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: clamp(34px, 5vw, 56px); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 560px; margin: 0 auto 22px; }

/* ---------- services page ---------- */
.services-list { display: grid; gap: 20px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); scroll-margin-top: 100px; box-shadow: var(--shadow-sm); }
.service-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.service-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-2); background: linear-gradient(135deg, rgba(47,107,237,.12), rgba(21,184,207,.14)); }
.service-icon svg { width: 30px; height: 30px; }
.service-head h2 { margin: 0 0 4px; font-size: 1.45rem; }
.service-head p { margin: 0; }
.service-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.service-points li { position: relative; padding-left: 28px; color: var(--ink); font-size: .98rem; }
.service-points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px;
  background: var(--accent); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat;
}
:root { --check: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>'); }

.remote-box { margin-top: 28px; background: var(--grad); color: #fff; border-radius: 22px; padding: clamp(28px, 4vw, 48px); }
.remote-box h2 { color: #fff; }
.remote-box p { color: rgba(233,243,255,.9); }
.remote-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin-top: 8px; }
.remote-list li { position: relative; padding-left: 28px; color: #eaf3ff; }
.remote-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px; background: var(--accent); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 320px at 85% -10%, rgba(21,184,207,.28), transparent 60%); }
.page-hero-inner { position: relative; z-index: 1; padding: clamp(54px, 7vw, 88px) 0; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(233,243,255,.9); font-size: 1.12rem; }
.page-hero .eyebrow { color: #7fe3f0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about-card h3 { margin-bottom: 12px; }
.about-areas li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); }
.about-areas li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; background: var(--accent); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent); }
.value-card h3 { margin-bottom: 8px; }
.value-card p { margin: 0; font-size: .95rem; }
.geo-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.geo-pill { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; flex: 1 1 240px; }
.geo-pill span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-2); background: linear-gradient(135deg, rgba(47,107,237,.12), rgba(21,184,207,.14)); }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item .label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.info-item .value { font-weight: 600; color: var(--ink); }
.info-item a.value { color: var(--ink); }
.info-item a.value:hover { color: var(--accent-2); }

.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.4rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(47,107,237,.15); }
.consent { font-size: .82rem; color: var(--muted); margin: 10px 0 16px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .94rem; font-weight: 500; }
.form-status.ok { background: #e7f7ef; color: #0f7a44; }
.form-status.err { background: #fdebec; color: #b3261e; }

.i18n-error { background: #fff4d6; color: #7a5a00; border: 1px solid #f0dca0; padding: 10px 16px; text-align: center; font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand); color: #cdddef; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #cdddef; display: inline-block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand b { color: var(--accent); }
.footer-brand p { color: #9fb6cf; max-width: 320px; font-size: .95rem; }
.footer-brand .footer-note { color: #7f97b3; font-size: .82rem; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .86rem; color: #9fb6cf; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: .2s; }
  .nav { margin-left: 0; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 10px 0; font-size: 1.05rem; border-bottom: 1px solid var(--bg-soft); }
  .nav-links a::after { display: none; }
  .nav { display: contents; }
  .lang-switch { position: relative; }
  /* keep lang switch + cta visible in header on mobile */
  .header-inner .lang-switch { order: 2; margin-left: auto; }
  .header-inner .nav-toggle { order: 3; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .svc-grid, .why-grid, .process-grid, .footer-grid, .service-points, .remote-list, .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
