/* ATLAS brand */
:root {
  --navy: #173c70;
  --navy-dark: #0f2a52;
  --teal: #3b8489;
  --teal-light: #e8f3f3;
  --ink: #1f2a37;
  --muted: #5b6676;
  --line: #e4e9ef;
  --bg-soft: #f6f9fb;
}

html, body { overflow-x: hidden; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.7;
  padding-top: 76px !important;
  background: #fff;
}

h1, h2, h3, h4, h5, .title {
  font-family: "Montserrat", "Inter", sans-serif;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 { font-size: 1.75em; margin-top: 1.6em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.12em; margin-top: 0.2em; }
a { color: var(--teal); }
a:hover, a:focus { color: var(--navy); }

.main-container { max-width: 1100px; }

/* Page title */
h1.title {
  font-size: 2.6em;
  font-weight: 800;
  margin: 28px 0 8px;
  padding-bottom: 14px;
  position: relative;
}
h1.title:after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 72px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

/* Navbar */
.navbar-default, .navbar-inverse {
  background: rgba(255,255,255,0.97);
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(23,60,112,0.06);
  min-height: 68px;
}
.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--navy) !important;
  height: 68px;
  line-height: 36px;
  padding: 16px 15px 16px 64px;
  background: url("images/logo-mark.png") no-repeat 12px center;
  background-size: 44px auto;
}
.navbar-default .navbar-nav > li > a,
.navbar-inverse .navbar-nav > li > a {
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 15px;
  padding-top: 24px; padding-bottom: 24px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:hover {
  color: var(--teal) !important;
  background: transparent !important;
}
.navbar-default .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:hover {
  background: transparent !important;
  color: var(--teal) !important;
  border-bottom-color: var(--teal);
}
.navbar-right > li > a { padding-left: 10px !important; padding-right: 10px !important; }
.navbar-toggle { margin-top: 17px; border-color: var(--line) !important; }
.navbar-toggle .icon-bar { background: var(--navy) !important; }
.navbar-collapse { border-color: var(--line) !important; background: #fff; }

/* Home hero */
.hero {
  margin: 18px 0 0;
  padding: 64px 48px 72px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(59,132,137,0.55), transparent 55%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal) 130%);
  color: #fff;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.hero-logo { flex: 0 0 210px; }
.hero-logo img { width: 210px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25)); }
.hero-text { flex: 1 1 380px; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px;
  font-weight: 600; color: #bfe3e4;
}
.hero h1 {
  color: #fff; font-size: 2.9em; font-weight: 800; line-height: 1.12;
  margin: 10px 0 16px;
}
.hero p.lead { color: #e5eef7; font-size: 1.2em; max-width: 560px; }
.btn-atlas, .btn-atlas-outline {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; margin: 10px 10px 0 0; text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-atlas { background: #fff; color: var(--navy) !important; }
.btn-atlas:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-atlas-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff !important; }
.btn-atlas-outline:hover { background: rgba(255,255,255,0.12); }
.btn-primary {
  background: var(--teal); border-color: var(--teal); border-radius: 999px;
  padding: 10px 22px; font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus { background: var(--navy); border-color: var(--navy); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: -30px 20px 10px; position: relative;
}
.stat {
  background: #fff; border-radius: 16px; padding: 20px 16px; text-align: center;
  box-shadow: 0 10px 30px rgba(23,60,112,0.12);
}
.stat strong {
  display: block; font-family: "Montserrat", sans-serif; font-size: 2.1em;
  color: var(--navy); line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 0.95em; }

/* Sections */
.section-label {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px;
  font-weight: 700; color: var(--teal); margin-top: 56px;
}
.feature-photo img {
  width: 100%; max-height: 520px; object-fit: cover; object-position: center 30%;
  border-radius: 20px; box-shadow: 0 18px 40px rgba(23,60,112,0.18);
}
.feature-photo figcaption { color: var(--muted); font-size: 0.92em; margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(23,60,112,0.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,60,112,0.12); }
.card h4 { margin-top: 0; }
.card em { color: var(--muted); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 10px;
  background: var(--teal-light); color: var(--teal); font-size: 20px;
}
.grid-2 .card { margin-bottom: 0; }

/* Call to action band */
.cta-band {
  margin: 56px 0 10px; padding: 36px 32px; border-radius: 20px;
  background: linear-gradient(120deg, var(--teal-light), #eef3fa);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .btn-atlas { background: var(--navy); color: #fff !important; margin: 0; }

/* Tables */
.table, table {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(23,60,112,0.06); margin-top: 12px;
}
table thead th, .table > thead > tr > th {
  background: var(--navy); color: #fff; border: none !important;
  font-family: "Montserrat", sans-serif; font-weight: 600; padding: 12px 14px !important;
}
table td, .table > tbody > tr > td { padding: 12px 14px !important; border-color: var(--line) !important; vertical-align: top; }
table tbody tr:nth-child(even) { background: var(--bg-soft); }
table tbody tr:hover { background: var(--teal-light); }

/* People */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.people-grid .card { margin-bottom: 0; text-align: center; }
.person .avatar, .person img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; display: block;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--teal-light);
}
.person .avatar {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 30px;
}
.person h4 { margin-bottom: 6px; }
.person p { font-size: 0.9em; color: var(--muted); line-height: 1.5; margin-bottom: 4px; }
.person .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin-top: 6px;
}
.leader-card { text-align: left !important; display: flex; gap: 24px; align-items: center; }
.leader-card .avatar, .leader-card img { width: 120px; height: 120px; margin: 0; flex: 0 0 120px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gallery figure {
  margin: 0; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(23,60,112,0.10);
}
.gallery img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform .35s;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 0.9em; color: var(--muted); padding: 12px 14px; }

/* Embedded map */
iframe { box-shadow: 0 10px 30px rgba(23,60,112,0.12); }

/* Lists */
ol li, ul li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  margin-top: 80px; background: var(--navy-dark); color: #c9d6e6;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 44px 24px 28px;
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between;
}
.footer-brand img { width: 120px; opacity: 0.95; }
.footer-col h5 { color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px; }
.footer-col a { display: block; color: #c9d6e6; margin: 6px 0; font-size: 0.95em; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col i { width: 18px; color: #7fc3c6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
  padding: 16px; font-size: 0.85em; color: #8fa3bd;
}

@media (max-width: 768px) {
  .hero { padding: 40px 22px; border-radius: 0 0 20px 20px; }
  .hero h1 { font-size: 2.1em; }
  .hero-logo { flex-basis: 140px; } .hero-logo img { width: 140px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin: -20px 0 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .leader-card { flex-direction: column; text-align: center !important; }
}

/* About */
.about-intro { display: flex; gap: 40px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.about-intro img { width: 190px; flex: 0 0 190px; }
.about-intro > div { flex: 1 1 380px; }
p.big { font-size: 1.2em; line-height: 1.65; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps .card { margin-bottom: 0; }
.step .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff;
  font-family: "Montserrat", sans-serif; font-weight: 700;
}
.founder-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.gallery figcaption strong { display: block; color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 1.02em; margin-bottom: 2px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.version-title { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--teal); font-size: 1.02em; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid #e6ebf2; }
