/* ==========================================================================
   Sesil Pir Consulting
   ========================================================================== */

:root {
  --green-dark: #1d3823;   /* dark green backgrounds */
  --cream: #f6f2ec;        /* cream backgrounds */
  --green: #22a446;        /* titles, buttons, accents */
  --white: #ffffff;
  --off-white: #fbfaf7;    /* footer */
  --ink: #1c211d;          /* headings */
  --text: #6b6a62;         /* body copy */
  --line: #e6e1d8;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1290px;
  --narrow: 900px;
  --radius: 16px;
  --pad-x: 1.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--green); outline-offset: 2px; }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p + p { margin-top: 1.25em; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container.narrow { max-width: calc(var(--narrow) + var(--pad-x) * 2); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.3rem; line-height: 1.6; max-width: 46rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s, background-color 0.2s;
}
.btn:hover { filter: brightness(1.08); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.14); filter: none; }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: #cfe3d3;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}
.btn-outline:hover { background: rgba(34, 164, 70, 0.06); filter: none; }

.text-link {
  display: inline-flex;
  gap: 0.5em;
  color: var(--green);
  font-weight: 500;
}
.text-link span:first-child {
  border-bottom: 1px solid currentColor;
  line-height: 1.3;
}
.text-link:hover span:first-child { border-bottom-width: 2px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 2.5rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo img { width: 204px; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; align-items: center; }
.nav-links a {
  position: relative;
  color: var(--white);
  font-size: 1rem;
  padding: 0.35rem 0;
  margin: 0 1.6rem;
}
.nav-links li + li a::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 50%;
  width: 1px;
  height: 1.1rem;
  transform: translateY(-50%);
  background: var(--green);
  opacity: 0.8;
}
.nav-links li:first-child a { margin-left: 0; }
.nav-links li:last-child a { margin-right: 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.2rem;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  background: var(--off-white);
  color: var(--ink);
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.nav-cta:hover { background: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Heroes
   -------------------------------------------------------------------------- */

.hero {
  --hero-h: 900px;                   /* same hero height on every page (from the mockups) */
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--hero-h);
  padding: 10rem 0 7rem;
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 30%, rgba(15,30,18,0.55) 100%);
}
.hero > .container { position: relative; }
.hero h1 { color: var(--white); }
.hero .btn { margin-top: 2.5rem; }

.hero-home { background-image: url("../images/hero-home.jpg"); background-position: 50% 20%; }

.hero-about {
  background-image: url("../images/hero-about.jpg");
  background-position: 70% center;
}
.hero-about::before { display: none; }
.hero-about .eyebrow { color: var(--white); }
.hero-about h1 { font-size: clamp(2rem, 4vw, 3.6rem); }

.hero-sub { color: rgba(255,255,255,0.85); max-width: 34rem; margin-top: 1.75rem; font-size: 1.15rem; }

.hero-consulting {
  background-image: url("../images/hero-consulting.jpg");
  background-position: 65% center;
}
.hero-consulting::before {
  background: linear-gradient(to right, rgba(29,56,35,0.7) 0%, rgba(29,56,35,0.2) 55%, rgba(29,56,35,0) 100%),
              linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(29,56,35,0.6) 100%);
}
.hero-consulting h1 { font-size: clamp(2rem, 4vw, 3.6rem); }

/* Plain dark-green hero (no photo) */
.hero-plain::before { display: none; }
.hero-plain h1 { max-width: 28ch; }
.hero-plain p { color: rgba(255,255,255,0.82); max-width: 54rem; margin-top: 2rem; font-size: 1.15rem; }
.hero-services { background-image: url("../images/hero-services.jpg"); background-position: 70% center; }
.hero-learning { background-image: url("../images/hero-learning.jpg"); background-position: center; }
.hero-keynote { background-image: url("../images/hero-keynote.jpg"); background-position: center; }
.hero-compact h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 8rem 0; }
.section-sm { padding: 5rem 0; }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--green-dark); color: rgba(255,255,255,0.75); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

.section-head { margin-bottom: 4rem; }
.section-head h2 { max-width: 34ch; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 5rem;
  align-items: start;
}

.split .btn { margin-top: 2.5rem; }

.prose h2 { margin-bottom: 2.5rem; }
.prose h3 { font-size: 1.7rem; margin: 4.5rem 0 2rem; max-width: 22ch; }
.prose .eyebrow + h2 { margin-top: 0; }
.prose .block + .block { margin-top: 6rem; }
.prose .intro {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
.prose .text-link { margin-top: 3.5rem; }
.prose .btn { margin-top: 3rem; }

/* Home: books */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.book-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 3rem 2.5rem 3rem 3rem;
}
.book-card img { width: 100%; max-width: 230px; justify-self: center; }
.book-card h3 { font-size: 1.6rem; line-height: 1.35; margin-bottom: 1.4rem; }
.book-card p { font-size: 1.05rem; line-height: 1.75; }
.book-card .text-link { margin-top: 2rem; }
.coming-soon {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid #cfe3d3;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}

/* Home: testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2.75rem 2.25rem;
}
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--white);
}
.quote-card figcaption { margin-top: 2.5rem; font-size: 1.05rem; color: rgba(255,255,255,0.6); }
.quote-card figcaption strong { color: var(--white); font-weight: 600; }

/* Home: videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.875rem; }
.video-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #2b3a2e center / cover no-repeat;
}
.video-thumb .play {
  display: grid;
  place-items: center;
  width: 4.25rem; height: 4.25rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.1rem;
  padding-left: 0.2rem;
  transition: transform 0.2s;
}
.video-card:hover .play { transform: scale(1.08); }
.video-card p { padding: 2rem 1.9rem 2.25rem; font-size: 1.05rem; line-height: 1.75; }

/* Home: resources */
.resources { align-items: center; }
.resources h2 { margin-bottom: 2.5rem; }
.pull-quote {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.4;
  color: var(--ink);
}
.pull-quote cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Learning hub: courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.875rem; }
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.course-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.course-card .body { padding: 2.5rem 2.5rem 2.75rem; }
.course-card h3 { font-size: 1.6rem; line-height: 1.35; margin-bottom: 1.25rem; }
.course-card p { font-size: 1rem; line-height: 1.8; }
.course-card .text-link { margin-top: 2rem; }

.image-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed #d6d1c6;
  border-radius: var(--radius);
  background: var(--off-white);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a887f;
}
.bg-cream .image-placeholder { background: rgba(255,255,255,0.35); }

.feature { margin-top: 5rem; align-items: center; }
.feature-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
/* Learning hub feature images: a little larger than the course-card images (~410px) */
.feature .feature-img, .feature .image-placeholder { width: 100%; max-width: 25rem; }
/* Columns sized to the image so the text sits close to it */
.feature { grid-template-columns: 25rem minmax(0, 38rem); column-gap: 4rem; justify-content: start; }
.feature-rev { grid-template-columns: minmax(0, 38rem) 25rem; }
/* Consulting: client logo marquee */
.clients { overflow: hidden; }
.clients .section-head { margin-bottom: 3rem; }
.marquee {
  --slot: 13rem;                      /* one logo slot; the strip shows 3 */
  width: min(calc(var(--slot) * 3), 100% - 2 * var(--pad-x));
  margin-left: max(var(--pad-x), calc((100% - var(--narrow)) / 2));  /* line up with the heading */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
  will-change: transform;
}
.marquee ul { display: flex; align-items: center; flex-shrink: 0; }
.marquee li { flex: 0 0 var(--slot); display: flex; justify-content: center; padding: 0 1.5rem; }
.marquee img { height: 3rem; width: auto; max-width: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; max-width: var(--narrow); margin-right: var(--pad-x); }
  .marquee-track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 2rem; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Consulting: lists */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 7rem; }
.lists h3 { font-size: 1.85rem; margin: 0 0 2rem; }
.dot-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
  line-height: 1.6;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Keynote inquiry form */
.hero-plain p .accent { color: #5fd183; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.875rem; margin-bottom: 3rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 1rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input::placeholder, .field textarea::placeholder { color: #a5a399; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1.5rem; color: var(--ink); }
.form-status.error { color: #b3261e; }

/* CTA band */
.cta { text-align: center; padding: 8rem 0; }
.cta h2 { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* Service offerings */
.offering { padding: 6.5rem 0; }
.offering h2 { font-size: 1.85rem; margin-bottom: 1.75rem; }
.offering .statement {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.6;
  color: var(--green);
}
.offering .details {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 3px double #cfe3d3;
  border-bottom: 3px double #cfe3d3;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 3.5rem;
  font-size: 1.05rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { font-family: var(--serif); color: var(--ink); font-size: 1.15rem; }
.footer-top a:hover, .footer-social a:hover { color: var(--green); }
.footer-social { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1.75rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .book-card { grid-template-columns: 1fr; text-align: left; }
  .book-card img { max-width: 180px; }
}

@media (max-width: 960px) {
  :root { --pad-x: 1.25rem; }
  .section { padding: 5rem 0; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: var(--pad-x); right: var(--pad-x);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--green-dark);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { display: block; margin: 0; padding: 0.75rem 0; }
  .nav-links li + li a::before { display: none; }
  .nav-links a::after { right: auto; width: 2.5rem; bottom: 0.4rem; }
  .nav-cta { text-align: center; }
  .site-header { padding: 1.5rem 0; }
  .logo img { width: 160px; }

  .hero { --hero-h: 40rem; padding-bottom: 4rem; }

  .split, .book-grid, .quote-grid, .video-grid, .course-grid, .lists, .form-grid { grid-template-columns: 1fr; }
  h1 br, h2 br { display: none; }
  .feature .image-placeholder, .feature .feature-img { order: 2; }
  .marquee { --slot: 7rem; }
  .marquee li { padding: 0 0.75rem; }
  .marquee img { height: 2.25rem; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-social { flex-wrap: wrap; gap: 1rem 2rem; }
}
