/* ===== AWP Labs — base reset & tokens ===== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --navy: #042C53;
  --navy-2: #0A2540;
  --light-blue: #E6F1FB;
  --sky: #7AB8E8;
  --text-dark: #0A2540;
  --text-muted: #4B5E78;
  --white: #ffffff;
  --bg-soft: #F8FAFC;
  --border: #DCE6F1;

  --container: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(4,44,83,.06);
  --shadow-md: 0 6px 18px rgba(4,44,83,.08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --transition: 180ms ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--sky); }

/* Skip link for a11y */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

h1, h2, h3, h4 {
  color: var(--navy-2);
  line-height: 1.2;
  margin: 0 0 .75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); margin-bottom: .5rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: .02em;
}
.brand img { height: 40px; width: 40px; }
.brand span { font-size: 1.05rem; }

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--text-dark);
  font-size: .95rem;
  font-weight: 500;
}
.nav-list a:hover { color: var(--navy); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-muted);
  padding: .15rem .4rem;
  border-radius: 4px;
}
.lang-switch a:hover { color: var(--navy); background: var(--light-blue); }
.lang-switch a.active { color: var(--navy); background: var(--light-blue); }
.lang-switch .sep { color: var(--border); }

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform var(--transition);
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after  { position: absolute; top:  6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
  padding: 6rem 0 5rem;
  border-top: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.svg") center/cover no-repeat;
  opacity: .55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,44,83,.55) 0%, rgba(4,44,83,.85) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 880px; }
.hero .lead {
  font-size: 1.15rem;
  max-width: 760px;
  color: rgba(255,255,255,.92);
  margin-top: 1rem;
}
.hero .anchor {
  display: inline-block;
  margin-top: 1.25rem;
  font-style: italic;
  color: var(--sky);
  font-size: 1rem;
}
.hero-cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.1;
}
.btn-primary {
  background: var(--sky);
  color: var(--navy-2);
  border-color: var(--sky);
}
.btn-primary:hover { background: #95c8ee; color: var(--navy-2); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-solid {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-solid:hover { background: var(--navy-2); color: var(--white); }

/* ===== Generic section heading ===== */
.section-head { max-width: 760px; margin-bottom: 2.5rem; }

/* ===== Three pillars ===== */
.pillars { background: var(--bg-soft); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--light-blue);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: .9rem;
}
.pillar h3 { color: var(--navy); margin-bottom: .35rem; }
.pillar p  { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* ===== AI section ===== */
.ai {
  background: linear-gradient(180deg, var(--light-blue) 0%, var(--white) 100%);
}
.ai .section-subtitle { color: var(--navy-2); }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.ai-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
}
.ai-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .35rem; }
.ai-card p  { color: var(--text-muted); margin: 0; font-size: .96rem; }
.ai-closing {
  margin-top: 2rem;
  font-size: 1.02rem;
  color: var(--navy-2);
  font-weight: 500;
}

/* ===== Methodology ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sky);
  margin-bottom: .5rem;
}
.step h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .35rem; }
.step p  { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ===== Contact ===== */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact .section-subtitle { color: rgba(255,255,255,.85); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card h3 { color: var(--white); font-size: 1.05rem; }
.contact-card a { color: var(--sky); }
.contact-card a:hover { color: var(--white); }
.contact-cta { margin-top: 1.5rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.85);
  padding: 2.5rem 0 1.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.site-footer a { color: var(--sky); }
.site-footer a:hover { color: var(--white); }
.copyright {
  padding-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4.5rem 0 3.5rem; }

  .menu-btn { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-list a {
    display: block;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-list[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ai-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}
