/* ============================================================
   jamesbriankey.com — Stylesheet
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1b2a4a;
  --navy-light: #243560;
  --gold:   #b8882a;
  --blue-mid: #3b6fa8;
  --white:  #ffffff;
  --off-white: #eff4fc;
  --gray:   #4e6478;
  --text:   #1a1a2e;
  --border: #c8d8ea;

  --font-serif: 'Poppins', sans-serif;
  --font-sans:  'Poppins', sans-serif;

  --max-width: 1100px;
  --nav-height: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

img { display: block; max-width: 100%; }
a  { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; font-weight: 600; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 600; }
h4 { font-weight: 500; letter-spacing: 0; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

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

section { padding: 72px 0; }
section.alt { background: var(--off-white); }

/* --- Navigation -------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s;
}
nav.nav-scrolled {
  border-bottom-color: var(--gold);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--gold); }

/* Hamburger — mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.2s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 24px; }
}

/* --- Hero -------------------------------------------------- */
.hero {
  background: var(--navy);
  background-image:
    linear-gradient(rgba(15, 25, 50, 0.68) 0%, rgba(15, 25, 50, 0.62) 100%),
    url('images/hero-banner.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 96px 0 80px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 660px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.cred-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: #a07622; border-color: #a07622; text-decoration: none; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); text-decoration: none; color: var(--white); }

.btn-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* --- Stats bar --------------------------------------------- */
.stats {
  background: var(--gold);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 6px;
}

/* --- Section intro text ------------------------------------ */
.section-intro {
  max-width: 640px;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* --- Card grid --------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.card h3 { color: var(--navy); margin-bottom: 10px; min-height: 4.5rem; display: flex; align-items: center; }
.card p  { font-size: 0.95rem; color: var(--gray); margin: 0; }

/* --- Pull quote -------------------------------------------- */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  background: var(--off-white);
  margin: 40px 0;
}

.pull-quote p {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* --- About layout ------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.about-sidebar {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 24px 18px;
  border-radius: 2px;
}

.about-sidebar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 16px;
}

.cred-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.65;
}

.cred-list li::before {
  content: "·";
  margin-right: 5px;
  color: var(--gold);
  font-size: 1rem;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Expertise list ---------------------------------------- */
.expertise-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.expertise-item:last-child { border-bottom: none; }
.expertise-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.expertise-item p  { margin: 0; }

/* --- Contact form ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.97rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea { min-height: 130px; resize: vertical; }

/* --- Page header (interior pages) -------------------------- */
.page-header {
  background: var(--navy);
  padding: 52px 0 44px;
  color: var(--white);
  min-height: 220px;
}

.page-header h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(2.5rem, 6vw, 3.8rem); }

.page-header .subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 520px;
}

/* --- Footer ------------------------------------------------ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

/* --- Framework dark section -------------------------------- */
.framework-dark {
  background: var(--navy);
  padding: 80px 0;
}

.framework-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}

.framework-dark h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.framework-dark .framework-intro {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.framework-dark .framework-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 82% 82% at center, black 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 82% at center, black 50%, transparent 100%);
}

@media (max-width: 640px) {
  .framework-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --- How I lead + framework combined ----------------------- */
.how-lead-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: stretch;
}

.how-lead-col {
  display: flex;
  flex-direction: column;
}

.how-lead-col > h2 {
  margin-bottom: 24px;
}

.how-lead-col-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-lead-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-lead-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

@media (max-width: 700px) {
  .how-lead-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* --- Career highlight cards -------------------------------- */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.highlight-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.1rem; min-height: 4.5rem; display: flex; align-items: center; }
.highlight-card p  { font-size: 0.95rem; color: var(--gray); margin: 0; }

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


/* --- Expertise page layout --------------------------------- */
.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.expertise-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 24px 18px;
  border-radius: 2px;
}

.expertise-sidebar h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 12px;
}

.expertise-sidebar ul {
  list-style: none;
  border-top: 1px solid var(--border);
}

.expertise-sidebar ul li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.expertise-sidebar ul li a {
  color: var(--navy);
  font-size: 0.95rem;
}

.expertise-sidebar ul li a:hover {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 700px) {
  .expertise-layout { grid-template-columns: 1fr; }
  .expertise-sidebar { display: none; }
}

/* --- Credential badge row ---------------------------------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.badge-simple {
  width: 150px;
  height: 270px;
}

.badge-simple-inner {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  text-decoration: none;
  padding: 16px;
  text-align: center;
  transition: border-color 0.15s;
}
.badge-simple-inner:hover { border-color: var(--gold); text-decoration: none; }

.badge-simple-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.badge-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.badge-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
}

.badge-simple-issuer {
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.35;
  text-align: center;
}

.badge-simple-verify {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}

/* --- Utility ----------------------------------------------- */
.text-gold  { color: var(--gold); }
.text-gray  { color: var(--gray); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
