/* ============================================
   PERSONAL ALGORITHMS
   AI Governance Compliance Advisory
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* ─── Variables ──────────────────────────────── */
:root {
  --black:        #0d0f14;
  --navy:         #13161f;
  --navy-mid:     #1e2332;
  --teal:         #0ab4a8;
  --teal-dark:    #089088;
  --teal-light:   #f0fafa;
  --white:        #ffffff;
  --off-white:    #f8f8f6;
  --gray-100:     #f2f2f0;
  --gray-300:     #d4d4d0;
  --gray-500:     #8a8a85;
  --gray-700:     #4a4a45;
  --dark-text:    #1a1a18;
  --border:       #e2e2de;
  --border-dark:  rgba(255,255,255,0.1);
  --font-head:    'Raleway', sans-serif;
  --font-body:    'Lato', sans-serif;
  --radius:       4px;
  --max-width:    1080px;
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: var(--dark-text); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--dark-text); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1.1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }
.label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 1rem;
}

/* ─── Layout ─────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 100px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }
.divider { width: 40px; height: 2px; background: var(--teal); margin: 1.25rem 0 2rem; }
.divider-center { margin: 1.25rem auto 2rem; }

/* ─── Navigation ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark-text);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--teal); }
.nav-menu { display: flex; gap: 2.5rem; align-items: center; }
.nav-menu a {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--dark-text); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: var(--white) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark-text); border-radius: 2px; }

/* ─── Hero ───────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(10,180,168,0.06) 100%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; }
.hero-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.hero h1 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-sub strong { color: rgba(255,255,255,0.9); font-weight: 400; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Page Hero (inner pages) ────────────────── */
.page-hero {
  background: var(--navy);
  padding: 70px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero .label { color: rgba(10,180,168,0.9); }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 600px; margin: 0; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  line-height: 1;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--off-white); color: var(--navy); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-outline { background: transparent; color: var(--dark-text); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--dark-text); color: var(--dark-text); }

/* ─── Credential Strip ───────────────────────── */
.credential-strip {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 1.25rem 0;
  background: rgba(255,255,255,0.03);
}
.credential-strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}
.cred-item {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  flex-shrink: 0;
}
.cred-item:first-child { padding-left: 0; }
.cred-item:last-child { border-right: none; }

/* ─── Problem Statement ──────────────────────── */
.problem-text {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.6;
  color: var(--dark-text);
  font-weight: 300;
  max-width: 820px;
}
.problem-text strong {
  color: var(--dark-text);
  font-weight: 700;
}

/* ─── Service Cards ──────────────────────────── */
.service-block {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.service-block:last-child { border-bottom: 1px solid var(--border); }
.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}
.service-meta .service-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.service-meta h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.service-meta .pricing {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-top: 0.5rem;
}
.service-meta .timeline {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}
.service-body p { font-size: 1rem; line-height: 1.75; }
.service-disclaimer {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--gray-100);
  border-left: 2px solid var(--gray-300);
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  font-style: italic;
}

/* Workshop blocks */
.workshop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.workshop-card {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.workshop-card:hover { border-color: var(--teal); }
.workshop-card .ws-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.workshop-card h4 { margin-bottom: 0.75rem; line-height: 1.3; }
.workshop-card p { font-size: 0.93rem; }
.workshop-card .ws-price {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-top: 1rem;
}

/* ─── About ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo img {
  width: 100%;
  filter: grayscale(15%);
  border-radius: var(--radius);
}
.about-photo-caption {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  font-style: italic;
}
.credential-list { margin: 2rem 0; }
.credential-list li {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.4;
}
.credential-list li::before {
  content: '—';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.cert-tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--gray-700);
}

/* ─── Speaking ───────────────────────────────── */
.talk-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.talk-year {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--teal);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}
.talk-item h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.talk-item .talk-venue { font-size: 0.88rem; color: var(--gray-500); }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.topic-item { background: var(--white); padding: 1.5rem 2rem; }
.topic-item h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.topic-item p { font-size: 0.88rem; margin: 0; }

/* ─── Contact / Work With Me ─────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-side h2 { margin-bottom: 0.5rem; }
.contact-side p { font-size: 1rem; }
.contact-links-list { margin: 2rem 0; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--gray-700);
}
.contact-link-item a { color: var(--gray-700); }
.contact-link-item a:hover { color: var(--teal); }
.contact-link-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* Form */
.intake-form .form-group { margin-bottom: 1.35rem; }
.intake-form label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}
.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-text);
  background: var(--white);
  transition: border-color 0.2s;
  appearance: none;
}
.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.intake-form textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ─── Callout / CTA ──────────────────────────── */
.cta-block {
  background: var(--navy);
  padding: 80px 0;
}
.cta-block-inner { max-width: 680px; }
.cta-block h2 { color: var(--white); margin-bottom: 1rem; }
.cta-block p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-block .label { color: var(--teal); margin-bottom: 0.75rem; }

/* Pullquote */
.pullquote {
  border-left: 2px solid var(--teal);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--off-white);
}
.pullquote p {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--dark-text);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}

/* ─── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--black);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.footer-brand .logo span { color: var(--teal); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 260px; }
.footer-nav h5 {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.footer-nav ul li { margin-bottom: 0.6rem; }
.footer-nav a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
  max-width: 680px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 300px; }
  .service-block-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .workshop-grid { grid-template-columns: 1fr; }
  .topic-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 65px 0; }
  .hero { padding: 80px 0 65px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0; z-index: 99; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
  .talk-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .cred-item { padding: 0 1.25rem; font-size: 0.62rem; }
}
