/* Amtar Engineering Solutions */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --divider: #d2d2d7;
  --footer-text: #6e6e73;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.47;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.55);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 22px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.nav-links a {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 13px;
  padding: 7px 14px;
  color: rgba(0, 0, 0, 0.72);
  border-radius: 980px;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); font-weight: 500; }

.nav-pill {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 120px 22px 100px; }
.hero.alt { background: var(--bg-alt); }

.hero .eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.06;
  max-width: 820px;
  margin: 0 auto;
}

.hero p.sub {
  font-size: clamp(19px, 2.3vw, 24px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 640px;
  margin: 22px auto 0;
  line-height: 1.4;
}

.hero .cta-row { margin-top: 34px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  font-size: 17px;
  padding: 12px 26px;
  border-radius: 980px;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { opacity: 0.82; text-decoration: none; }

.btn.light { background: var(--bg); color: var(--text); border: 1px solid var(--divider); }

.btn-link { font-size: 17px; }
.btn-link::after { content: " \203A"; }

/* ---------- Sections ---------- */
.section { max-width: 1024px; margin: 0 auto; padding: 96px 22px; }
.section.tight { padding: 70px 22px; }
.band { background: var(--bg-alt); }

.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.section-header h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-header p {
  font-size: 19px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.45;
}

.statement {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  max-width: 800px;
}
.statement .dim { color: var(--text-secondary); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 38px 32px;
}
.band .card { background: var(--bg); }

.card .index {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

.card ul { margin-top: 12px; list-style: none; }
.card ul li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.card ul li:last-child { border-bottom: none; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.chip {
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid transparent;
}
.band .chip { background: var(--bg); border-color: rgba(0,0,0,0.06); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; text-align: center; }

.stats .num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stats .label { font-size: 15px; color: var(--text-secondary); margin-top: 6px; }

/* ---------- Two column text ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 734px) { .cols { grid-template-columns: 1fr; gap: 30px; } }

.cols h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.cols p { color: var(--text-secondary); font-size: 17px; margin-bottom: 14px; }

/* ---------- Forms ---------- */
.form { max-width: 640px; margin: 0 auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  padding: 13px 16px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.field textarea { resize: vertical; min-height: 120px; }

.form .btn { width: 100%; margin-top: 8px; }

.form-note { font-size: 13px; color: var(--footer-text); text-align: center; margin-top: 14px; }
.form-note a { color: #005bb5; text-decoration: underline; text-underline-offset: 2px; }
.form-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.form-status {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.dropzone {
  display: block;
  border: 1.5px dashed var(--divider);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(0, 113, 227, 0.04); }
.dropzone input { display: none; }
.dropzone .file-name { display: block; margin-top: 6px; font-weight: 500; color: var(--text); }

/* ---------- Info list ---------- */
.info-list { list-style: none; }
.info-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.info-list li:last-child { border-bottom: none; }
.info-list .k { font-weight: 600; }
.info-list .v { color: var(--text-secondary); text-align: right; }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; padding: 96px 22px; }
.cta-banner.band { background: var(--bg-alt); }

.cta-banner h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta-banner p { font-size: 19px; color: var(--text-secondary); margin: 14px 0 28px; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--divider);
  padding: 50px 22px 34px;
}

.footer-inner { max-width: 1024px; margin: 0 auto; }

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 34px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--divider);
}
@media (max-width: 734px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; color: var(--text); }
.footer-brand img { height: 20px; }

.footer-tagline { font-size: 13px; color: var(--footer-text); margin-top: 12px; max-width: 240px; }

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-cols ul { list-style: none; }
.footer-cols ul li { padding: 2px 0; }
.footer-cols ul a { color: #424245; font-size: 13px; display: inline-flex; align-items: center; min-height: 24px; }
.footer-cols ul span { color: #424245; font-size: 13px; }

.footer-legal { font-size: 12px; color: var(--footer-text); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

@media (max-width: 734px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 22px 16px;
    background: rgba(251, 251, 253, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > li:not(.nav-pill) { width: 100%; }
  .nav-links > li > a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 15px; }
  .nav-pill { display: none; }
  .lang-switch { width: 100%; }
  .lang-btn { width: 100%; min-height: 44px; justify-content: space-between; padding: 8px 12px; }
  .lang-menu { display: none; position: static; min-width: 0; margin-top: 4px; box-shadow: none; transform: none; }
  .lang-switch.open .lang-menu { display: block; transform: none; }
  .hero { padding: 88px 22px 66px; }
}

/* ---- language switcher ---- */
.lang-switch{position:relative}
.lang-btn{font:inherit;color:var(--text-secondary);background:none;border:none;cursor:pointer;padding:8px 14px;border-radius:980px;display:inline-flex;align-items:center;gap:6px;transition:color .2s,background .2s}
.lang-btn:hover{color:var(--text);background:rgba(0,0,0,.05)}
.lang-btn .globe{font-size:15px;line-height:1}
.lang-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:150px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.12);padding:6px;list-style:none;margin:0;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s,transform .18s,visibility .18s;z-index:100}
.lang-switch.open .lang-menu{opacity:1;visibility:visible;transform:translateY(0)}
.lang-menu li{margin:0}
.lang-menu a{display:flex;align-items:center;min-height:44px;padding:9px 14px;border-radius:9px;color:var(--text-secondary);font-size:15px;transition:background .15s,color .15s}
.lang-menu a:hover{background:rgba(0,0,0,.05);color:var(--text)}
.lang-menu a.active{color:var(--text);font-weight:600}
html[dir="rtl"] .lang-menu{right:auto;left:0}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .nav-links{flex-direction:row-reverse}

@media (max-width: 734px) {
  .lang-btn { width: 100%; min-height: 44px; justify-content: space-between; padding: 8px 12px; }
  .lang-menu { display: none; position: static; min-width: 0; margin-top: 4px; box-shadow: none; transform: none; }
  .lang-switch.open .lang-menu { display: block; transform: none; }
  html[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
  html[dir="rtl"] .nav-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
