:root {
  --navy: #101c33;
  --navy-light: #1c2e4f;
  --amber: #e0a527;
  --amber-dark: #c48c17;
  --bg: #f6f7fa;
  --bg-alt: #eceef3;
  --text: #1f2733;
  --text-muted: #5a6474;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(16, 28, 51, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* Clears the sticky 64px header so anchored headings aren't hidden under it */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

/* Gallery images are made keyboard-focusable in JS, so focus has to be visible */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: #cbd3e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-photo {
  flex: 0 0 280px;
}

.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin: 0 0 12px;
  font-weight: 800;
}

.hero-text .tagline {
  font-size: 1.2rem;
  color: #d7deeb;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
}

.hero-badges li {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e8edf6;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 15px;
}

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

/* Stats band */
.stats-band {
  background: var(--amber);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #4a3607;
}

/* About / why sales */
.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 44px;
}

.about-copy {
  max-width: 68ch;
}

.about-photo { flex: 0 0 240px; }

.about-photo img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy p {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.about-copy p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}

.btn-primary:hover { background: var(--amber-dark); }

.btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover { border-color: var(--white); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 36px;
  color: var(--navy);
}

/* Resume */
.resume-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.resume-ready { display: flex; flex-direction: column; gap: 24px; align-items: center; }

.resume-preview {
  max-width: 480px;
  width: 100%;
  border: 1px solid #e2e5eb;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(16, 28, 51, 0.12);
}

.resume-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-outline-dark {
  color: var(--navy);
  border-color: #cfd5e0;
  background: var(--white);
}

.btn-outline-dark:hover { border-color: var(--navy); }

/* Proof point cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.card-eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-dark);
  margin: 0 0 8px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--navy);
}

.card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Certificate showcase */
.cert-showcase {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid #dcdfe7;
}

.cert-showcase-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 22px;
  text-align: center;
}

.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 26px;
}

.cert-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.cert-item img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e8eaef;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.cert-item img:hover { opacity: 0.88; }

.cert-item figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Projects */
.project {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 40px;
}

.project:last-child { margin-bottom: 0; }

.project-header h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--navy);
}

.project-blurb {
  color: var(--text-muted);
  max-width: 70ch;
  margin: 0 0 24px;
}

.project-takeaway {
  margin: -12px 0 22px;
  font-size: 0.93rem;
  color: var(--text-muted);
  border-left: 3px solid var(--amber);
  padding-left: 14px;
  max-width: 70ch;
}

.project-takeaway strong { color: var(--navy); }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 20px;
  max-width: 560px;
}

.project-gallery img {
  border-radius: 8px;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  transition: opacity 0.15s ease;
}

.project-gallery img:hover { opacity: 0.85; }

.project-video video {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  background: #000;
  display: block;
}

/* Contact */
.contact-intro {
  max-width: 62ch;
  margin: -18px 0 28px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 26px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  transition: transform 0.12s ease;
}

.contact-link:hover { transform: translateY(-2px); }
.contact-icon { font-size: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #9aa5b8;
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* 404 page */
.notfound {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 96px 0 104px;
  min-height: 58vh;
}

.notfound-code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}

.notfound h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.notfound-copy {
  color: #d7deeb;
  max-width: 48ch;
  margin: 0 0 30px;
  font-size: 1.05rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-photo { flex: 0 0 auto; width: 220px; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }

  .section { padding: 52px 0; }

  .hero-text h1 { font-size: 2.1rem; }
  .hero-text .tagline { font-size: 1.06rem; }
  .section-title { font-size: 1.6rem; margin-bottom: 26px; }
  .about-copy p { font-size: 1rem; }
  .stat-number { font-size: 1.9rem; }

  /* Portrait drops below the copy, centred */
  .about-inner { flex-direction: column; gap: 28px; }
  .about-photo { flex: 0 0 auto; width: 220px; align-self: center; }

  /* Two-across thumbnails on phones — full width each would triple the scroll */
  .project-gallery {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(min(115px, 100%), 1fr));
  }

  /* Cards and projects get tighter padding on small screens */
  .card { padding: 22px 20px; }
  .project { padding: 24px 20px; }
  .resume-panel { padding: 22px 18px; }

  .notfound { padding: 64px 0 72px; }
  .notfound h1 { font-size: 1.8rem; }
}

/* Respect a reduced-motion preference: no smooth scrolling, no hover lifts */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:hover, .contact-link:hover { transform: none; }
}
