/* Geoff Todd (gctodd.com) — PHP/CSS rebuild
   Design tokens captured from the live Divi/WordPress site's computed styles. */

:root {
  --green: #21ff10;
  --dark: #1e1e1e;
  --white: #ffffff;
  --font-heading: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
  --font-body: 'Merriweather', Georgia, "Times New Roman", serif;
  --font-slider: 'Merriweather Sans', Helvetica, Arial, sans-serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

/* Keyboard/screen-reader shortcut past the nav. Hidden until focused. */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--green);
  border-bottom: none;
  font-family: var(--font-heading);
  font-weight: 700;
}
.skip-nav:focus {
  left: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  color: var(--dark);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
}

h1 { font-size: 90px; letter-spacing: 3px; }
h2 { font-size: 30px; font-weight: 600; margin-top: 30px; }
h3 { font-size: 26px; font-weight: 600; margin-top: 20px; }
h4 { font-size: 20px; font-weight: 600; }

.intro-text { text-align: center; }
.intro-text h2.intro-heading { font-size: 30px; font-weight: 600; }
.intro-text > p { font-weight: 400; }

.biz-col h4 { color: #000; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.icon-heading { width: 32px; height: 32px; flex-shrink: 0; color: #999; }
.biz-col p { font-size: 16px; font-weight: 400; }

p { margin: 0 0 24px; }

a {
  color: var(--dark);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 0.2em dotted var(--green);
}
a:hover { color: var(--green); border-bottom-style: solid; }

ul { padding-left: 22px; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 30px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  /* 48px square keeps the whole area tappable, not just the 3px bars */
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--green);
  height: 3px;
  border-radius: 2px;
  width: 30px;
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}
.nav-toggle-label span::before { top: -9px; }
.nav-toggle-label span::after { top: 9px; }

.main-nav { display: flex; align-items: center; }
.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  border-bottom: none;
}
.main-nav a.active,
.main-nav a:hover { color: var(--green); }

@media (max-width: 780px) {
  .nav-toggle-label { display: flex; }
  .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px 30px;
    /* animated open/close — display can't transition, so fade + slide instead */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 807px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: right center;
  color: var(--white);
  padding: 140px 20px 60px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero .subhead {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 30px;
}
.btn {
  display: inline-block;
  padding: 6px 20px;
  border: 2px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
}
.btn:hover { background: var(--green); color: var(--dark); border-bottom: 2px solid var(--green); }

/* Responsive hero type — matches the live site's Divi breakpoints (980px / 767px) */
@media (max-width: 980px) {
  h1 { font-size: 72px; }
  .hero .subhead { font-size: 36px; }
}
@media (max-width: 767px) {
  h1 { font-size: 46px; }
  .hero .subhead { font-size: 22px; }
  .hero { padding: 100px 20px 60px; }
}

/* smaller post/page hero */
.hero.hero-post { min-height: 460px; padding-top: 160px; }

/* Archive heroes (category / author) have no photo — flat grey instead.
   Text is full white rather than the usual 60% so contrast stays strong:
   #fff on #4a4a4a is 8.9:1, well past the WCAG AA requirement. */
.hero.hero-plain {
  background-image: none;
  background-color: #4a4a4a;
}
.hero.hero-plain::before { content: none; }
.hero.hero-plain h1 { color: #fff; }
@media (min-width: 781px) {
  .hero.hero-post {
    min-height: 460px;
    padding-bottom: 230px;
  }
}

/* diagonal shape divider at the bottom of every hero, matching the live site */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: var(--white);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 2;
}
@media (max-width: 780px) {
  .hero::after { height: 50px; }
}

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: #f7f7f5; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

.testimonial {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 55px auto 0;
  padding-top: 30px;
}
.testimonial .portrait {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.testimonial .testimonial-body { flex: 1; min-width: 0; }
.testimonial .quote-mark {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  color: var(--dark);
}
.testimonial .quote-mark svg { width: 100%; height: 100%; display: block; }
.testimonial p { font-size: 17px; text-align: left; }
.testimonial cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  text-align: left;
}
.testimonial cite span { display: block; font-weight: 400; font-size: 15px; color: var(--dark); }
@media (max-width: 780px) {
  .testimonial { flex-direction: column; text-align: center; }
  .testimonial p, .testimonial cite { text-align: center; }
}

/* ---------- About-me split panel ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}
.about-split .photo {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}
.about-split .panel {
  background: var(--dark);
  color: #ddd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px;
}
.about-split .panel h2 { color: var(--white); }

/* Diagonal edge — desktop only, purely decorative.
   The panel overlaps into the photo column, then gets clipped on the diagonal. */
@media (min-width: 781px) {
  .about-split .panel {
    margin-left: -70px;
    padding-left: 140px;
    clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%);
  }
}
@media (max-width: 780px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split .panel { padding: 60px 30px; }
}

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}
.blog-card {
  position: relative;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 19px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card .thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
}
.blog-card .card-body { padding: 22px 0 0; flex: 1; display: flex; flex-direction: column; }
.blog-card h2, .blog-card h3 {
  font-family: var(--font-slider);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
/* Title link: plain black, no green underline, no hover change (matches live) */
.blog-card h2 a,
.blog-card h3 a {
  color: #000;
  border-bottom: none;
  font-weight: inherit;
  font-family: inherit;
}
.blog-card h2 a:hover,
.blog-card h3 a:hover { color: #000; border-bottom: none; }
/* Stretch the title link over the whole card so the entire card is clickable */
.blog-card h2 a::after,
.blog-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.blog-card .meta { font-family: var(--font-body); font-size: 13px; color: #888; margin-bottom: 14px; }
.blog-card .meta a { color: #888; border-bottom: none; font-weight: 400; }
.blog-card p { flex: 1; font-size: 15px; line-height: 1.7; }
/* keep these above the stretched overlay so they stay independently clickable */
.blog-card .meta a,
.blog-card .read-more { position: relative; z-index: 2; }
.blog-card .read-more { align-self: flex-start; margin-top: auto; }

/* ---------- Blog slider (homepage) ---------- */
.blog-slider {
  position: relative;
  padding: 0;
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 525px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.slide .slide-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 77px;
}
.slide h2 {
  font-family: var(--font-slider);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.slide h2 a { color: var(--white); border-bottom: none; font-family: inherit; font-weight: inherit; }
.slide p { color: var(--white); font-size: 19px; font-weight: 400; }
.slide .btn { color: var(--white); border-color: var(--white); font-weight: 500; }
.slide .btn:hover { background: var(--white); color: var(--dark); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.blog-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:focus-visible { opacity: 1; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slider-dots a {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  display: block;
}
.slider-dots a.active,
.slider-dots a:hover { background: var(--white); }

/* Responsive slider — matches the live site's Divi breakpoints */
@media (max-width: 980px) {
  .slide .slide-content { padding: 0 46px; }
  .slide h2 { font-size: 26px; line-height: 1; }
}
@media (max-width: 767px) {
  /* Larger than the live site's 20px/14px — deliberate readability choice.
     Side padding leaves room for the arrows. */
  .slide .slide-content { padding: 0 48px; }
  .slide h2 { font-size: 28px; line-height: 1.15; }
  .slide p { font-size: 16px; }
  /* Touch has no hover, so arrows stay permanently visible here */
  .slider-arrow {
    display: flex;
    opacity: 1;
    width: 38px;
    height: 38px;
    font-size: 40px;
  }
  .slider-arrow.prev { left: 2px; }
  .slider-arrow.next { right: 2px; }
  .slider-dots { bottom: 26px; }
}

/* ---------- Post body ---------- */
.post-body { max-width: 760px; margin: 0 auto; padding: 60px 30px; }
.post-body img { border-radius: 6px; margin: 20px 0; }
.post-body img.img-narrow { max-width: 480px; margin: 20px auto; }

.talks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  background: #f7f7f5;
  padding: 40px;
  margin: 30px 0;
}
.talk-item img { margin: 0 0 20px; }
.talk-item p { font-size: 15px; margin: 0; }
@media (max-width: 780px) {
  .talks-grid { grid-template-columns: 1fr; padding: 30px; }
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 30px 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA block ---------- */
.cta {
  background-color: #f7f7f7;
  color: var(--dark);
  padding: 90px 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  background-image: url('../images/robot-board-smaller-e1600354724182.png');
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: auto;
}
.cta .container { width: 80%; max-width: 1080px; padding: 26px 0; }
.cta h2 { color: var(--dark); font-size: 30px; line-height: 1.5; margin: 30px 0 15px; }
.cta .cta-text { margin: 0 0 28px; }
.cta .cta-text p { font-weight: 500; margin: 0; padding-bottom: 17px; }
.cta .cta-text p:last-child { padding-bottom: 0; }
.cta .cta-btn { margin: 0 0 28px; }
.cta .btn {
  background: var(--green);
  border-color: #000;
  color: #000;
  font-weight: 500;
}
.cta .btn:hover { background: #000; color: var(--green); border-color: #000; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #3d3d3f;
  color: #fff;
  padding: 100px 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
.site-footer ul {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  .site-footer ul { justify-content: center; }
}
.site-footer ul a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  border-bottom: none;
}
.site-footer ul a.active,
.site-footer ul a:hover { color: var(--green); }
.site-footer .footer-copy a,
.site-footer p a { color: var(--green); border-bottom: none; font-weight: 400; }
.site-footer .footer-copy { text-align: right; }
@media (max-width: 780px) {
  .site-footer .footer-copy { text-align: center; }
}
.site-footer p { margin: 0 0 8px; color: #fff; }

.back-to-top {
  position: fixed;
  right: 0;
  bottom: 125px;
  width: 40px;
  height: 40px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 5px 0 0 5px;
  border-bottom: none;
  z-index: 50;
}
.back-to-top.is-visible { display: flex; }
.back-to-top svg { width: 100%; height: 100%; display: block; }
.back-to-top:hover { color: var(--green); }

/* ---------- Privacy / plain page ---------- */
.plain-page { max-width: 760px; margin: 0 auto; padding: 80px 30px; }
