/* ============================================================
   ATLAS DYNAMIC SOLUTIONS LIMITED - Design System
   ============================================================ */

:root {
  /* Color */
  --navy-950: #081527;
  --navy-900: #0b1f3a;
  --navy-800: #12294d;
  --navy-700: #1a3660;
  --blue-600: #1b4b8a;
  --blue-500: #2563ac;
  --blue-100: #e3ecf7;
  --amber-500: #e8a33d;
  --amber-600: #cf8a22;
  --amber-100: #fbeed9;
  --green-600: #1fa463;
  --whatsapp: #25d366;
  --slate-25: #fbfcfe;
  --slate-50: #f5f8fc;
  --slate-100: #eef2f7;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #4b5563;
  --slate-800: #1f2937;
  --slate-900: #101828;
  --white: #ffffff;

  /* Type */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 4px 14px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 18px 40px rgba(11, 31, 58, 0.16);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-800);
  background: var(--slate-25);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; color: var(--slate-600); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--amber-500); display: inline-block; }

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.15rem; color: var(--slate-600); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: .96rem;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark { background: transparent; border-color: var(--slate-200); color: var(--navy-900); }
.btn-outline-dark:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1fb959; box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand-logo-chip { background: var(--white); border-radius: 8px; padding: 5px 10px; display: flex; align-items: center; height: 42px; flex-shrink: 0; }
.brand-logo-chip img { height: 100%; width: auto; display: block; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(145deg, var(--amber-500), var(--amber-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950); font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: var(--white); font-size: 1.02rem; letter-spacing: .01em; }
.brand-text span { display: block; color: var(--slate-400); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500;
  padding: 10px 14px; border-radius: var(--radius-sm); transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--white); padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 720px) {
  .brand-text { display: none; }
}

@media (max-width: 960px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); z-index: 250;
    background: var(--navy-900); flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--white); padding: 96px 0 110px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { color: var(--amber-500); }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,.78); font-size: 1.18rem; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.hero-fact { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); padding: 16px 18px; }
.hero-fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--amber-500); }
.hero-fact span { font-size: .82rem; color: rgba(255,255,255,.65); }

.hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-600), var(--navy-800));
  border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg);
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 640px) {
  .hero { padding: 52px 0 48px; }
  .hero-visual { aspect-ratio: 16/11; max-height: 300px; }
  .hero-facts { margin-top: 32px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.trust-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.trust-strip li { color: rgba(255,255,255,.7); font-size: .84rem; display: flex; align-items: center; gap: 9px; }
.trust-strip li svg { width: 16px; height: 16px; color: var(--amber-500); flex-shrink: 0; }

/* ---------- Cards / Grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 30px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-500); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--blue-600);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; font-size: .95rem; }
.card-link { font-size: .88rem; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.tag { background: var(--slate-100); color: var(--slate-600); font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--slate-200); }
.tag-amber { background: var(--amber-100); color: var(--amber-600); border-color: transparent; }
.tag-blue { background: var(--blue-100); color: var(--blue-600); border-color: transparent; }
.tag-green { background: #e7f8ee; color: var(--green-600); border-color: transparent; }

/* ---------- Section alt background ---------- */
.section-alt { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }

/* ---------- Project / case-study cards ---------- */
.project-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.project-media {
  aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-family: var(--font-head); font-size: .82rem; text-align: center; padding: 20px;
}
.project-media svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.project-media span { position: relative; z-index: 1; background: rgba(8,21,39,.55); padding: 6px 14px; border-radius: 999px; }
.project-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.project-status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.project-status.live { color: var(--green-600); }
.project-status.done { color: var(--blue-600); }
.project-status.live::before, .project-status.done::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.project-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--slate-100); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--slate-500); }
.project-meta b { color: var(--slate-800); font-weight: 600; }

.confirm-note {
  display: flex; gap: 10px; align-items: flex-start; background: var(--amber-100); border: 1px solid #f0d9ae;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .82rem; color: #7a5716; margin-top: 16px;
}
.confirm-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Division / detail blocks ---------- */
.division-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--slate-200); }
.division-block:first-of-type { border-top: none; padding-top: 0; }
@media (max-width: 860px) { .division-block { grid-template-columns: 1fr; gap: 24px; } }
.division-number { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--amber-600); margin-bottom: 8px; }
.solutions-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 540px) { .solutions-sub { grid-template-columns: 1fr; } }
.solutions-sub li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate-700); background: var(--slate-50); border: 1px solid var(--slate-200); padding: 12px 14px; border-radius: var(--radius-sm); }
.solutions-sub svg { width: 16px; height: 16px; color: var(--green-600); flex-shrink: 0; margin-top: 3px; }

/* ---------- Leadership ---------- */
.leader-card { display: flex; gap: 22px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; }
.leader-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, var(--blue-500), var(--navy-800)); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }
.leader-card h3 { margin-bottom: 2px; }
.leader-role { color: var(--blue-600); font-size: .84rem; font-weight: 600; margin-bottom: 10px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- Facts table ---------- */
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table tr { border-bottom: 1px solid var(--slate-200); }
.facts-table tr:last-child { border-bottom: none; }
.facts-table th, .facts-table td { text-align: left; padding: 16px 4px; font-size: .94rem; vertical-align: top; }
.facts-table th { color: var(--slate-500); font-weight: 600; width: 40%; }
.facts-table td { color: var(--slate-800); font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600), var(--navy-800));
  border-radius: var(--radius-lg); padding: 56px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.78); margin-bottom: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.65); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid a, .footer-grid li { display: block; font-size: .92rem; margin-bottom: 12px; color: rgba(255,255,255,.6); }
.footer-grid a:hover { color: var(--amber-500); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; max-width: 320px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--amber-500); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .82rem; flex-wrap: wrap; gap: 12px; }
.tbc { color: var(--amber-500); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; border: 1px dashed var(--amber-500); padding: 1px 6px; border-radius: 4px; margin-left: 4px; }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 30px; height: 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--white); padding: 68px 0 64px; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .lede { color: rgba(255,255,255,.75); }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--amber-500); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--slate-800); margin-bottom: 7px; }
.field .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm);
  background: var(--slate-25); color: var(--slate-900); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.field-file { border: 1.5px dashed var(--slate-200); border-radius: var(--radius-sm); padding: 18px; text-align: center; background: var(--slate-25); font-size: .86rem; color: var(--slate-500); }
.field-hint { font-size: .78rem; color: var(--slate-400); margin-top: 6px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--slate-600); }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.form-status.show { display: block; }
.form-status.success { background: #e7f8ee; color: #157a45; border: 1px solid #b7e6cb; }

.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.channel-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.channel-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
.channel-icon svg { width: 22px; height: 22px; }
.channel-icon.wa { background: var(--whatsapp); }
.channel-icon.we { background: #07c160; }
.channel-icon.em { background: var(--blue-600); }
.channel-icon.ad { background: var(--navy-800); }
.channel-icon.hr { background: var(--amber-500); color: var(--navy-950); }
.channel-card h4 { margin: 0 0 4px; font-size: .98rem; color: var(--navy-900); }
.channel-card p { margin: 0; font-size: .87rem; }
.qr-box { width: 92px; height: 92px; border: 1.5px dashed var(--slate-200); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--slate-400); font-size: .68rem; text-align: center; flex-shrink: 0; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-200); margin-top: 16px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Partner cards ---------- */
.partner-card { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; }
.partner-mark { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--navy-900); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; flex-shrink: 0; }
.partner-mark-logo { background: var(--white); border: 1px solid var(--slate-200); padding: 6px; }
.partner-mark-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack-16 > * + * { margin-top: 16px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy-900);
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
