/* Peak Agile — site styles */

:root {
  --navy: #0B2235;
  --navy-deep: #07182A;
  --navy-line: #1C3550;
  --ink: #1E2A33;
  --body: #3D4B55;
  --muted: #55636E;
  --line: #E3E7EA;
  --line-strong: #DDE2E6;
  --ground: #F5F7F8;
  --white: #FFFFFF;
  --accent: #2F6FD6;
  --accent-hover: #1F56B0;
  --logo-blue: #4A86E8;
  --accent-on-dark: #9CC0F7;
  --text-on-dark: #C9D3DB;
  --muted-on-dark: #A7B4BF;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --section-pad: clamp(64px, 8vw, 112px);
  --max: 1280px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav a.nav-cta {
  color: var(--white);
  background: var(--navy);
  padding: 12px 20px;
  border-radius: 999px;
  border-bottom: none;
}
.nav a.nav-cta:hover { background: var(--accent); color: var(--white); }
.nav a.nav-cta[aria-current="page"] { background: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav a.nav-cta { margin-top: 16px; text-align: center; }
}

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.on-dark .eyebrow { color: var(--accent-on-dark); }

.h1 {
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
}
.h3 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--body);
}
.text { color: var(--body); line-height: 1.65; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--accent-on-dark); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--ground); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .text, .section-dark .lead { color: var(--text-on-dark); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head > div { max-width: 680px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ground);
  padding: clamp(72px, 10vw, 136px) 0;
}
.hero-art {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: min(720px, 60%);
  height: auto;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-content { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero .lead { max-width: 640px; }

/* Home banner with the mountain trail photo under a navy tint.
   Remove the hero-photo class in index.html to return to the plain banner. */
.hero-photo {
  background:
    linear-gradient(90deg, rgba(11, 34, 53, 0.94) 0%, rgba(11, 34, 53, 0.80) 45%, rgba(11, 34, 53, 0.45) 100%),
    url('../images/mountain-trail.jpg') center 40% / cover no-repeat;
  padding: clamp(96px, 12vw, 168px) 0;
}
.hero-photo .hero-art { display: none; }
.hero-photo h1 { color: var(--white); }
.hero-photo .lead { color: #E3E9EE; }
.hero-photo .eyebrow { color: var(--accent-on-dark); }
.hero-photo .btn-outline { border-color: var(--white); color: var(--white); }
.hero-photo .btn-outline:hover { background: var(--white); color: var(--navy); }

.page-hero {
  background: var(--ground);
  padding: clamp(56px, 7vw, 96px) 0;
}
.page-hero .container { display: flex; flex-direction: column; gap: 24px; }
.page-hero .lead { max-width: 820px; }
.page-hero-split .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.page-hero-split .container > div { max-width: 640px; }

/* ---------- Grids & cards ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-soft { background: var(--ground); border-color: transparent; }
.card-dark { background: transparent; border-color: var(--navy-line); }
.card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
}
.card .promise { font-weight: 500; color: var(--ink); }
.card ul {
  margin: 4px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
}
.icon { width: 40px; height: 40px; color: var(--accent); }

/* Services grid on Home: tiled list */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile-grid a {
  background: var(--white);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
}
.tile-grid a:hover { background: var(--ground); }
.tile-grid .num { font-size: 13px; font-weight: 600; color: var(--accent); }
.tile-grid h3 { font-size: 19px; }

/* ---------- Approach steps ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.steps li {
  border-top: 3px solid var(--accent);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--line-strong);
}
.steps h3 { font-size: 24px; }

/* ---------- Quote + checklist (dark) ---------- */

.quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  color: var(--white);
  max-width: 900px;
}
.quote-cite { color: var(--text-on-dark); }

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 40px;
}
.checklist li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--navy-line);
  color: #E3E9EE;
  line-height: 1.55;
}
.checklist svg { flex: none; margin-top: 3px; color: var(--accent-on-dark); }

/* ---------- Numbered rows (Connection) ---------- */

.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 64px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.row-title { display: flex; gap: 20px; align-items: flex-start; }
.row-title .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  padding-top: 8px;
}
.row-title h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: clamp(40px, 5vw, 64px);
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 2.6vw, 34px); }
.cta-band p { color: var(--text-on-dark); margin-top: 10px; }

.cta-plain {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta-plain h2 { font-size: clamp(24px, 2.6vw, 34px); }

/* ---------- About the name ---------- */

.definitions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.definitions > div {
  border-top: 2px solid var(--navy);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.definitions .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--navy);
  line-height: 1.2;
}
.definitions .pos {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
}
.definitions p { font-size: 18px; color: var(--body); }

/* ---------- About ---------- */

.leader {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.leader-photo {
  flex: 0 0 300px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
}
.leader-bio {
  flex: 999 1 420px;
  min-width: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.leader-bio .role { font-weight: 600; color: var(--accent); margin-top: 6px; }
.leader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 8px; }
.leader-meta span { color: var(--muted); font-size: 15px; }

.disclosure {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ground);
  font-size: 14px;
  color: var(--body);
}
.disclosure svg { flex: none; margin-top: 1px; color: var(--muted); }
.disclosure strong { color: var(--ink); }

/* ---------- Contact ---------- */

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.contact-info {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact-details a { text-decoration: none; padding: 4px 0; }

.form {
  flex: 2 1 520px;
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ground);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.form .full { grid-column: 1 / -1; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #C5CDD3;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.form-foot small { color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -9999px; }

.notice {
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
}
.notice-success { background: #E7F1FB; color: #133C7A; }
.notice-error { background: #FBEBEB; color: #7A1F1F; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding: 56px 0 32px;
  font-size: 15px;
}
.site-footer .container { display: flex; flex-direction: column; gap: 32px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
}
.wordmark span { color: var(--logo-blue); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a, .footer-contact a { color: var(--text-on-dark); text-decoration: none; padding: 8px 0; }
.footer-contact a { color: var(--white); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent-on-dark); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-legal {
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
