/* ===== Agiloc International — site styles ===== */

:root {
  --navy-900: #0e1a2b;
  --navy-800: #14243a;
  --navy-700: #1c3450;
  --red: #e32b1e;
  --red-dark: #c32217;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 2px 8px rgba(14, 26, 43, 0.05);
  --shadow-md: 0 6px 24px rgba(14, 26, 43, 0.10);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.topbar {
  background: var(--navy-900);
  color: #c9d4e3;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.topbar a { color: #ffffff; font-weight: 500; }
.topbar a:hover { color: #ffb4ad; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.brand img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--red);
}
.nav .btn { border-bottom: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(227, 43, 30, 0.28);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(227, 43, 30, 0.32);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(227, 43, 30, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(58, 110, 180, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 104px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-inner { max-width: 720px; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9d94;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  color: #b9c5d6;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 32px;
}
.stat .num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat .label { font-size: 14px; color: #9fb0c6; }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(227, 43, 30, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 75%);
  color: #fff;
}
.page-hero .container { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero p { color: #b9c5d6; max-width: 640px; font-size: 17px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

/* ===== Memberships strip ===== */
.memberships { padding: 40px 0; border-bottom: 1px solid var(--line); }
.memberships .label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.memberships .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.memberships img {
  height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.memberships img:hover { filter: none; opacity: 1; }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fdeceb;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* ===== Two-column about ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }

.checklist { list-style: none; margin-top: 8px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000, #000);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  background: var(--red);
}
.checklist li span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 15px; }

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.news-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.01em; }
.news-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.news-card .more { font-size: 14px; font-weight: 600; color: var(--red); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fdeceb;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: 15px; font-weight: 650; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 15px; color: var(--ink-soft); }
.contact-item a:hover { color: var(--red); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 20px; font-weight: 650; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* ===== CTA band ===== */
.cta-band {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(227, 43, 30, 0.2), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 75%);
  color: #fff;
}
.cta-band .container {
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-band p { color: #b9c5d6; max-width: 520px; }

/* ===== Service detail lists ===== */
.service-group { margin-bottom: 64px; }
.service-group:last-child { margin-bottom: 0; }
.service-group > h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-group > .sub { color: var(--ink-soft); margin-bottom: 28px; }

/* ===== Resource list ===== */
.resource-list { display: grid; gap: 16px; }
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.resource-item:hover { box-shadow: var(--shadow-md); }
.resource-item .info h3 { font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.resource-item .info p { font-size: 14px; color: var(--ink-soft); }
.resource-item .btn { flex: none; padding: 10px 20px; font-size: 14px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: #9fb0c6;
  font-size: 14px;
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .footer-brand img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 6px 12px; margin-bottom: 16px; }
.site-footer p { max-width: 340px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ===== Process steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 14px;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--red), rgba(227, 43, 30, 0.25));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.process-step:hover::after { opacity: 1; }
.process-step h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Accessibility & details ===== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(227, 43, 30, 0.18); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .card-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-stats .container { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .footer-main { grid-template-columns: 1fr; }
  .topbar { display: none; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { display: block; width: 100%; padding: 10px 0; font-size: 16px; }
  .nav .btn { margin-top: 8px; text-align: center; }

  .resource-item { flex-direction: column; align-items: flex-start; }
}
