/* ============================================================
   Kevin Carlson — Technology Leadership Coach
   Single-page marketing site — styled to match the original
   Divi site (Cormorant Garamond + Jost, brand green #156b2b).
   ============================================================ */

:root {
  --green:        #156b2b;          /* brand green: nav, overlay, cards */
  --green-dark:   #0f4f20;
  --green-bright: #8cc63f;          /* active/hover nav accent */
  --accent-red:   #b8373f;          /* icon glyphs + testimonial divider (from original) */
  --link:         #2ea3f2;          /* body links (matches original) */
  --ink:          #1a1a1a;
  --body:         #666666;
  --bg:           #ffffff;
  --testi-bg:     #f1f1f1;
  --footer-bg:    #000000;
  --footer-pill:  #2b2b2b;
  --line:         #e2e2e2;
  --radius:       10px;
  --shadow:       0 10px 30px rgba(0, 0, 0, 0.08);
  --maxw:         1120px;
  --serif:        "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:         "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }

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

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.5em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 0.85em 2.2em;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ============================================================
   HEADER / NAV  (solid green bar with script logo)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}
.brand { display: flex; align-items: center; }
.brand img { width: clamp(180px, 22vw, 230px); height: auto; }

.primary-nav { display: flex; align-items: center; gap: 2.4rem; }
.primary-nav a {
  color: #fff;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: .01em;
  padding: .25rem 0;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--green-bright); text-decoration: none; }
.primary-nav a.is-active { color: var(--green-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO + SERVICES — one continuous photo section
   ============================================================ */
.showcase {
  position: relative;
  background: url("/assets/hero.jpg") center top / cover no-repeat fixed;
  isolation: isolate;
  color: #fff;
}
.showcase-overlay {
  position: absolute; inset: 0; z-index: -1;
  /* Exact overlay from the original site's .et_parallax_gradient: dark at the
     top (behind the hero text), fading to a muted blue behind the cards — reads
     as a slight gray wash. */
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(25,113,223,0.37) 100%);
}
.showcase-inner {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.hero-text { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-text h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  margin-bottom: .35em;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.hero-text p {
  color: rgba(255,255,255,.96);
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  font-weight: 400;
  margin: 0 auto;
  max-width: 800px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.services-title {
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}

/* ---------- Service cards ----------
   Matches the original: a 2px white rounded frame with the photo showing
   through a ~15px gap, then a translucent green panel inside. No shadow. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.card {
  display: flex;                 /* let the panel stretch to equal card height */
  border: 2px solid #ffffff;
  border-radius: 12px;
  background: transparent;
  transition: border-color .3s ease;
}
.card:hover { border-color: #1971df; }   /* frame turns blue as the green expands */

/* Entrance animation — slide up + fade, with the original's 1s timing/easing.
   .reveal hides the card until the IntersectionObserver adds .reveal-in. */
.card.reveal { opacity: 0; }
.card.reveal-in {
  animation: cardSlideIn 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--reveal-delay, 0s) both;
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(100px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-panel {
  width: 100%;
  background: rgba(21, 107, 43, 0.70);
  border-radius: 10px;
  padding: 30px 18px 34px;
  text-align: center;
  color: #fff;
  /* Inset from the white frame via scale; the photo shows through the gap.
     On hover the panel grows to meet the border and turns fully opaque —
     matching the original. */
  transform: scale(0.92);
  transform-origin: center;
  transition: transform .3s ease, background-color .3s ease;
}
.card:hover .card-panel {
  transform: scale(1);
  background-color: rgba(21, 107, 43, 1);
}
.card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-red);
  display: grid; place-items: center;
}
.card-icon svg { width: 32px; height: 32px; }
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;             /* 24px */
  color: #fff;
  margin: 0 0 .5rem;
}
.card p { color: #fff; font-weight: 500; font-size: 1rem; line-height: 1.625; margin: 0; }

/* ============================================================
   ABOUT  (rounded-rect headshot, gray body text)
   ============================================================ */
.about { padding: clamp(56px, 8vw, 90px) 0; background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.about-photo img {
  width: 220px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.about-text p { color: var(--body); margin: 0 0 1.2em; font-size: 1.05rem; font-weight: 300; }
.about-text p:last-child { margin-bottom: 0; }
.about-text a { color: var(--link); }

/* ============================================================
   TESTIMONIALS  (light gray card, big quote, maroon divider)
   ============================================================ */
.testimonials { padding: clamp(40px, 6vw, 70px) 0 clamp(56px, 8vw, 90px); background: #fff; }

.carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  transition: transform .5s cubic-bezier(.4,.0,.2,1);
}
.slide {
  flex: 0 0 100%;
  background: var(--testi-bg);
  padding: 2.6rem clamp(1.4rem, 5vw, 4rem) 2.4rem;
  text-align: center;
}
.slide blockquote { margin: 0 0 1.4rem; position: relative; }
.slide blockquote::before {
  content: "\201C";
  font-family: var(--serif);
  font-weight: 600;
  font-size: 5rem;
  line-height: .8;
  color: #cfcfcf;
  display: block;
  margin-bottom: .2rem;
}
.slide blockquote p {
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  line-height: 1.85;
  color: #555;
  font-weight: 400;
  margin: 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--accent-red);
}
.cite { display: flex; flex-direction: column; gap: 1px; }
.cite-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.cite-title, .cite-company { font-size: .9rem; color: #888; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #b8b8b8;
  font-size: 2.4rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color .2s ease;
  z-index: 2;
}
.carousel-btn:hover { color: var(--green); }
.carousel-prev { left: -54px; }
.carousel-next { right: -54px; }

.carousel-dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 1.6rem;
}
.carousel-dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: #cfcfcf;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button[aria-selected="true"] { background: var(--green); transform: scale(1.2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(56px, 8vw, 90px) 0; background: var(--testi-bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-intro p { color: var(--body); font-size: 1.08rem; font-weight: 300; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  row-gap: 1.1rem;
}
/* Full-width rows: message, the Turnstile widget, submit button, status */
.field--full,
.contact-form .cf-turnstile,
.contact-form .btn,
.form-status { grid-column: 1 / -1; }
.field { margin-bottom: 0; }
.field label {
  display: flex; align-items: flex-end;
  min-height: 2.4em;            /* reserve 2 lines so wrapped labels keep paired inputs aligned */
  font-weight: 500; font-size: .92rem; margin-bottom: .4rem; color: var(--ink);
}
.req { color: var(--accent-red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .75em .9em;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21,107,43,.14);
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin: 0; }
.contact-form .btn { width: 100%; }
.form-status { margin: 0; font-weight: 500; min-height: 1.2em; }
.form-status.is-success { color: var(--green); }
.form-status.is-error   { color: #c0392b; }

/* ============================================================
   FOOTER  (black, logo + social left, CTA right, copyright pill)
   ============================================================ */
.site-footer { background: var(--footer-bg); color: #fff; padding: clamp(48px, 7vw, 70px) 0 2rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.footer-brand { display: flex; flex-direction: column; gap: 1.4rem; }
.footer-logo { width: clamp(220px, 32vw, 300px); height: auto; }
.social { display: flex; gap: .8rem; }
.social a {
  width: 38px; height: 38px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.10);
  color: #fff;
  transition: background .2s ease;
}
.social a:hover { background: var(--green); }

.copyright {
  background: var(--footer-pill);
  color: rgba(255,255,255,.85);
  text-align: center;
  font-size: .92rem;
  padding: 1.1rem 1.5rem;
  border-radius: 40px;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .showcase { background-attachment: scroll; }
  .cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-photo img { width: 240px; }
  .contact-inner { grid-template-columns: 1fr; }
  .carousel-prev { left: 2px; }
  .carousel-next { right: 2px; }
  .carousel-btn { background: rgba(255,255,255,.7); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { align-items: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 320px; }
  .primary-nav a { padding: 1rem 24px; border-top: 1px solid rgba(255,255,255,.15); }
  /* Paired form fields stack to a single column on narrow screens */
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
  .card-panel { transition: background-color .3s ease; }
}
