/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --navy:       #1b1f5e;
  --navy-dark:  #13174a;
  --navy-light: #2d337a;
  --indigo-50:  #eef0fb;
  --indigo-100: #d8dcf5;
  --text:       #1a1a2e;
  --text-muted: #4a4a68;
  --white:      #ffffff;
  --border:     #dde0f0;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(27,31,94,0.10);
  --shadow-lg:  0 8px 48px rgba(27,31,94,0.16);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── Focus visible ── */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--indigo-50); transform: translateY(-1px); }

.btn--full { width: 100%; justify-content: center; }

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  white-space: nowrap;
}
.btn--white:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Section helpers ── */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--indigo-50);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-tag--light {
  color: var(--white);
  background: rgba(255,255,255,0.18);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header--light h2,
.section-header--light p { color: var(--white); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(27,31,94,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav__logo-img--footer {
  height: 32px;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--navy); }

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover { background: var(--navy-dark) !important; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__mobile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 16px;
}

.nav__mobile a {
  font-weight: 500;
  color: var(--navy);
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Scroll animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services__grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.services__grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.why-adamy__grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.why-adamy__grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.why-adamy__grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Hero ── */
.hero {
  padding: 80px 0 96px;
  background-color: var(--white);
  background-image:
    radial-gradient(circle at 20% 55%, rgba(27,31,94,0.06) 0%, transparent 52%),
    radial-gradient(circle at 80% 15%, rgba(50,100,255,0.05) 0%, transparent 45%),
    radial-gradient(circle, rgba(27,31,94,0.07) 1px, transparent 1px);
  background-size: cover, cover, 28px 28px;
  background-position: left center, right top, 0 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--indigo-100);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__text h1 em {
  font-style: normal;
  color: var(--navy);
  position: relative;
}

.hero__text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

#globe-canvas {
  width: 460px;
  height: 460px;
  max-width: 100%;
}

#globe-canvas canvas {
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(27, 31, 94, 0.18),
    0 0 120px rgba(50, 100, 255, 0.10);
}

/* ── Services ── */
.services {
  padding: 96px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.services__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  padding: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--indigo-100);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--indigo-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 12px;
}

.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card__list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--navy);
  border-radius: 50%;
}

/* ── Why ── */
.why {
  padding: 96px 0;
  background: var(--navy);
}

.why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
}

.why__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 32px;
  background: rgba(255,255,255,0.06);
  text-align: center;
}

.why__stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.why__stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.why__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why__icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.why__icon svg { width: 100%; height: 100%; }

.why__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.why__item p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

/* ── Why Adamy ── */
.why-adamy {
  padding: 96px 0;
  background: var(--indigo-50);
}

.why-adamy__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-adamy__card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.why-adamy__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.why-adamy__card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.why-adamy__card--wide .why-adamy__icon {
  flex-shrink: 0;
}

.why-adamy__icon {
  width: 52px;
  height: 52px;
  background: var(--indigo-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.why-adamy__icon svg { width: 100%; height: 100%; }

.why-adamy__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.why-adamy__card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Mid CTA ── */
.cta-mid {
  padding: 80px 0;
  background: var(--navy);
}

.cta-mid__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-mid__text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-mid__text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 540px;
}

/* ── Contact ── */
.contact {
  padding: 96px 0;
  background: var(--indigo-50);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section-tag { margin-bottom: 20px; }

.contact__info h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--navy);
}

.contact__info p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--navy);
  transition: gap var(--transition);
}

.contact__link:hover { gap: 16px; }

.contact__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Form ── */
.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label span { color: var(--navy); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,31,94,0.12);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

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

.form-error {
  font-size: 0.8rem;
  color: #c0392b;
  font-weight: 500;
}

/* ── Form success overlay ── */
.form-success-overlay {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  animation: fadeSlideUp 0.5s ease forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-success-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.form-success-overlay__check {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
}

/* Circle draws in */
.form-success-overlay__check circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 0.6s ease;
}

/* Tick draws in after circle */
.form-success-overlay__tick {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.4s ease 0.5s;
}

.form-success-overlay__check.animate circle { stroke-dashoffset: 0; }
.form-success-overlay__check.animate .form-success-overlay__tick { stroke-dashoffset: 0; }

.form-success-overlay__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.form-success-overlay__msg {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.form-success-overlay__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

.form-required-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: -4px;
}

.form-success {
  text-align: center;
  font-weight: 600;
  color: #1a7a4a;
  background: #e6f9f0;
  padding: 14px;
  border-radius: var(--radius-sm);
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cta-mid__inner { flex-direction: column; text-align: center; }
  .cta-mid__text p { max-width: 100%; }

  .hero__inner,
  .services__grid,
  .services__grid--3,
  .contact__inner { grid-template-columns: 1fr; }

  .why__stats { grid-template-columns: 1fr; }

  .why-adamy__grid { grid-template-columns: 1fr 1fr; }
  .why-adamy__card--wide { grid-column: span 2; flex-direction: column; }

  .hero__graphic { display: none; }

  .why__grid { grid-template-columns: 1fr; gap: 32px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .contact__inner { gap: 48px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }
  .service-card { padding: 28px; }
  .hero__actions { flex-direction: column; }
  .why-adamy__grid { grid-template-columns: 1fr; }
  .why-adamy__card--wide { grid-column: span 1; }
}
