/* i7 Consulting Group */

:root {
  --brand: #007fba;
  --brand-deep: #00629a;
  --brand-bright: #5cc2f2;
  --brand-tint: #e8f3fa;
  --ink: #0b1b2e;
  --ink-deep: #071322;
  --ink-2: #3c4a5c;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(11 27 46 / 0.04), 0 8px 24px rgb(11 27 46 / 0.06);
  --wrap: 1160px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--brand-tint);
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:active { transform: translateY(1px); }

.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-tint); border-color: #c7e2f2; color: var(--ink); }
.btn-icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-meta { font-size: 0.75em; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }

.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--ink); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.35); }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.6); }

.btn-small { padding: 0.55em 1.1em; font-size: 0.9rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a:not(.btn) {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--brand); }

@media (max-width: 640px) {
  .brand span { display: none; }
}
@media (max-width: 440px) {
  .nav-optional { display: none; }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(80px, 12vw, 160px);
  background:
    radial-gradient(1000px 600px at 85% 30%, rgb(0 127 186 / 0.22), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: rgb(255 255 255 / 0.78);
}
.hero::after {
  /* hairline in brand color to close the hero */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(92 194 242 / 0.5), transparent);
}

.hero-art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(1100px, 80%);
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 0.35) 30%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 0.35) 30%, #000 60%);
  pointer-events: none;
}

.hero-inner { position: relative; }
.hero h1 { max-width: 12em; color: #fff; text-wrap: wrap; }
.hero .eyebrow { color: var(--brand-bright); }

.lede {
  max-width: 31em;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  color: rgb(255 255 255 / 0.75);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.25rem;
}

@media (max-width: 760px) {
  .hero h1 { text-wrap: balance; }
  .hero-art {
    width: 100%;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  }
}

/* Sections */

.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section-head .btn { margin-top: 0.5rem; }

/* Core competencies */

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

.competency {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgb(11 27 46 / 0.04), 0 24px 48px -24px rgb(11 27 46 / 0.18);
  overflow: hidden;
}
.competency::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}
.competency .icon { width: 52px; height: 52px; padding: 12px; margin-bottom: 22px; }
.competency h3 { font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.75rem); }
.competency-intro { font-size: 1.05rem; margin-bottom: 1.75rem; }

.points { margin: 0; }
.points div {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.points div:last-child { padding-bottom: 0; }
.points dt { margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.points dd { margin: 0; font-size: 0.975rem; }

@media (max-width: 860px) {
  .competencies { grid-template-columns: 1fr; }
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #cfe3f0;
  box-shadow: 0 1px 2px rgb(11 27 46 / 0.04), 0 16px 40px rgb(11 27 46 / 0.1);
}
.card .icon { margin-bottom: 18px; }
.card p { font-size: 0.975rem; margin-bottom: 0.75em; }
.card p:last-child { margin-bottom: 0; }

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.ticks li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.35em;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--brand) 0%, #0a4f86 100%);
  border-color: transparent;
  color: rgb(255 255 255 / 0.88);
}
.card-cta h3 { color: #fff; font-size: 1.35rem; }
.card-cta .btn { margin-top: 0.75rem; }
.card-cta:hover { border-color: transparent; }

/* Careers */

.section-dark {
  background:
    radial-gradient(700px 400px at 0% 100%, rgb(0 127 186 / 0.28), transparent 70%),
    var(--ink);
  color: rgb(255 255 255 / 0.78);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--brand-bright); }

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.careers-grid .btn { margin-top: 0.75rem; }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefits li {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
}
.benefits strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 600;
}
.benefits span { font-size: 0.925rem; line-height: 1.5; }
.benefits .highlight {
  grid-column: 1 / -1;
  background: rgb(0 127 186 / 0.22);
  border-color: rgb(92 194 242 / 0.4);
}

@media (max-width: 900px) {
  .careers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
}

/* Contact */

.contact-panel {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgb(0 127 186 / 0.12), transparent 70%),
    var(--bg-alt);
  border: 1px solid var(--line);
}
.contact-panel > p:not(.eyebrow) {
  max-width: 34em;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 2rem;
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.contact-card > span { display: flex; flex-direction: column; min-width: 0; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 64px);
  font-size: 0.925rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { max-width: 30em; margin-top: 12px; }
.brand-small { font-size: 0.95rem; }
.brand-small img { width: 28px; height: 28px; }

.footer-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--brand); }

.footer-bottom {
  margin: 40px 0 0;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.06s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.18s; }
  .hero-art { animation: fade 1.4s ease both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
}

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