/* ==================================================================
   editing by carolyn wilson-scott — stylesheet (v2)
   Recreated from the original Canva site at
   editingbycarolynwilsonscott.my.canva.site

   Fonts (Google Fonts substitutes for Canva's licensed fonts):
     Fraunces   → display headlines (chunky friendly serif)
     Lora       → long-form body copy
     DM Sans    → nav, UI, buttons

   Sections:
     1. design tokens
     2. base / reset / utilities
     3. shared components (buttons, eyebrow headings)
     4. layout sections
        - header
        - hero
        - about              (two-column)
        - featured-quote     (Flynn — bookshelf bg + card)
        - portfolio          (typewriter graphic + 3-col book grid)
        - testimonials       (the rest)
        - contact
        - footer
     5. responsive
   ================================================================== */

/* ------------------------------------------------------------------
   1. design tokens
   ------------------------------------------------------------------ */
:root {
  /* color palette — pulled from the original site */
  --cream:        #FDFFD5;
  --cream-soft:   #FFF6E0;   /* card background on featured quote */
  --blue:         #5A7BD2;
  --blue-deep:    #3F5BAB;
  --olive:        #DFDB8B;
  --orange:       #E0531C;
  --orange-deep:  #B33F12;
  --ink:          #304254;
  --ink-soft:     #5A6B7D;
  --paper:        #FFFFFF;
  --rule:         rgba(48, 66, 84, 0.12);

  /* spacing scale */
  --space-2xs:  0.5rem;
  --space-xs:   0.75rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  /* typography */
  --font-display: "Fraunces", "Bookman Old Style", Georgia, serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;
  --font-ui:      "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --maxw-content: 760px;
  --maxw-wide:    1100px;
  --maxw-xwide:   1280px;
  --radius-pill:  999px;
  --radius-md:    8px;
  --radius-lg:    24px;
  --radius-xl:    36px;
}

/* ------------------------------------------------------------------
   2. base / reset / utilities
   ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img            { display: block; max-width: 100%; height: auto; }
ul             { margin: 0; padding: 0; list-style: none; }
a              { color: inherit; text-decoration: none; }
figure         { margin: 0; }
blockquote     { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  color: var(--cream);
}
.section-eyebrow--ink  { color: var(--ink); }
.section-eyebrow--blue { color: var(--blue); }

/* ------------------------------------------------------------------
   3. shared components — button
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  padding: 0.85em 2em;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: var(--orange);
  color: var(--cream);
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 83, 28, 0.28);
  outline: none;
}
.btn--primary:active { transform: translateY(0); }

/* ------------------------------------------------------------------
   4. layout sections
   ------------------------------------------------------------------ */

/* ---- HEADER ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: var(--maxw-xwide);
  margin: 0 auto;
  padding: 1rem var(--space-md);
}
.nav__list {
  display: flex;
  gap: var(--space-lg);
  justify-content: flex-end;
}
.nav__link {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__link:hover { color: var(--blue); }
.nav__link--active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}

/* ---- HERO ------------------------------------------------------ */
.hero {
  background: var(--cream);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
}
.hero__inner { max-width: 980px; margin: 0 auto; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8.5vw, 6.25rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--blue);
  margin: 0 0 var(--space-md);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero__title strong { font-weight: 700; }

.hero__tagline {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.125rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 var(--space-lg);
  font-variation-settings: "opsz" 14;
}
/* hero button override — dusty rose */
.hero .btn--primary {
  background: #B85C6A;
}
.hero .btn--primary:hover,
.hero .btn--primary:focus-visible {
  background: #a85a62;
  box-shadow: 0 6px 18px rgba(184, 92, 106, 0.32);
}

.hero__art { margin-top: var(--space-sm); }
.hero__art img { margin: 0 auto; max-width: 720px; width: 100%; }

/* ---- ABOUT ----------------------------------------------------- */
.about {
  background: var(--blue);
  color: var(--cream);
  padding: var(--space-2xl) var(--space-md);
}
.about__inner {
  max-width: var(--maxw-xwide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about .section-eyebrow {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.about__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  margin: 0 0 var(--space-md);
  color: var(--cream);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
}

.about__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
}
.about__body p  { margin: 0 0 var(--space-md); }
.about__body em { font-style: italic; font-weight: 500; }

.about__photo img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-md);
}

/* ---- PORTFOLIO (typewriter card + 3-col book grid) ------------- */
.portfolio {
  background: var(--olive);
  padding: var(--space-md) var(--space-md) var(--space-2xl);
  text-align: center;
}
.portfolio__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
}

.portfolio__header {
  margin: 0 auto var(--space-md);
  max-width: 300px;
}
.portfolio__header img {
  width: 100%;
  height: auto;
  /* the source already has the orange card baked in with rounded corners
     and a hint of shadow at the bottom; we just give it presence */
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.books__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: end;
}
.books__grid li { display: flex; justify-content: center; }
.books__grid img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.books__grid li:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* ---- TESTIMONIALS CAROUSEL (bookshelf bg + flippable cards) --- */
.testimonials {
  position: relative;
  isolation: isolate;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
  background: var(--ink);
}

.testimonials__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: saturate(0.9) brightness(0.85);
}

.testimonials__viewport {
  position: relative;
  max-width: var(--maxw-xwide);
  margin: 0 auto;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  will-change: transform;
  transition: transform 0.4s ease;
}
.testimonials__track:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.testimonials__card {
  flex: 0 0 100%;
  width: 100%;
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  margin: var(--space-md) 0;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.testimonials__card blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--blue);
  margin: 0 0 var(--space-md);
  font-variation-settings: "opsz" 14;
}

.testimonials__card figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--blue);
  text-align: right;
  letter-spacing: 0.01em;
}

.testimonials__card figcaption em {
  font-style: italic;
  font-weight: 500;
}

/* nav buttons */
.testimonials__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  padding: 0;
}
.testimonials__nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.testimonials__nav:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}
.testimonials__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.testimonials__nav--prev { left: var(--space-sm); }
.testimonials__nav--next { right: var(--space-sm); }

/* dots */
.testimonials__dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-lg);
  padding: 0 var(--space-md);
  z-index: 2;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 253, 212, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.testimonials__dot:hover { background: rgba(255, 253, 212, 0.7); }
.testimonials__dot.is-active {
  background: var(--cream);
  transform: scale(1.3);
}
.testimonials__dot:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---- CONTACT FORM ---------------------------------------------- */
.contact-form {
  max-width: var(--maxw-xwide);
  margin: var(--space-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form__honey { display: none; }

/* the [hidden] attribute on .contact-form is otherwise overridden by
   .contact-form { display: flex }; this restores the expected behavior */
.contact-form[hidden] { display: none; }

.contact-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.contact-form__hint {
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.75;
}

.contact-form__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(90, 123, 210, 0.35);
  border-radius: var(--radius-md);
  padding: 0.7em 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-form__input::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

.contact-form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(90, 123, 210, 0.15);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 0.25rem;
}

.contact-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--blue);
  cursor: pointer;
  background: var(--cream);
  border: 1.5px solid rgba(90, 123, 210, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.45em 1em;
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.contact-form__checkbox:hover {
  border-color: var(--blue);
  background: rgba(90, 123, 210, 0.07);
}

.contact-form__checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(90, 123, 210, 0.5);
  border-radius: 4px;
  background: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-form__checkbox input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.contact-form__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.contact-form__checkbox:has(input:checked) {
  background: rgba(90, 123, 210, 0.12);
  border-color: var(--blue);
}

.contact-form__submit {
  align-self: flex-end;
  background: #B85C6A;
  margin-top: var(--space-sm);
}

.contact-form__submit:hover {
  background: #a85a62;
  box-shadow: 0 6px 18px rgba(184, 92, 106, 0.32);
}

/* inline confirmation shown after a successful submit */
.contact-form__thanks {
  max-width: var(--maxw-xwide);
  margin: var(--space-xl) auto 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--cream);
  border: 1.5px solid rgba(90, 123, 210, 0.35);
  border-radius: var(--radius-md);
  text-align: center;
}
.contact-form__thanks-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--blue);
  margin: 0 0 var(--space-sm);
  font-variation-settings: "opsz" 144;
}
.contact-form__thanks-body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 640px) {
  .contact-form__row--two {
    grid-template-columns: 1fr;
  }
  .contact-form__checkboxes {
    gap: var(--space-xs);
  }
}
.contact {
  background: var(--cream);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}
.contact__inner { max-width: var(--maxw-content); margin: 0 auto; }
.contact .section-eyebrow { color: var(--blue); }

.contact__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 var(--space-md);
  color: var(--blue);
  font-variation-settings: "opsz" 144;
}
.contact__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  margin: 0 0 var(--space-lg);
  color: var(--ink);
}
.contact__body a {
  color: var(--orange);
  border-bottom: 1px solid currentColor;
}
.contact__body a:hover { color: var(--orange-deep); }

/* ---- FOOTER ---------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-md);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.site-footer p { margin: 0; }

/* ------------------------------------------------------------------
   5. responsive
   ------------------------------------------------------------------ */

/* Stack the about section's two columns on smaller screens */
@media (max-width: 880px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .about__photo {
    display: flex;
    justify-content: center;
  }
  .books__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav__list {
    gap: var(--space-md);
    justify-content: center;
  }

  .hero {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }
  .hero__title { line-height: 1.05; }

  .about,
  .portfolio,
  .testimonials,
  .contact {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .testimonials__nav {
    width: 40px;
    height: 40px;
  }

  .books__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 540px) {
  .testimonials__nav { display: none; }   /* swipe instead */
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


/* ==================================================================
   SERVICES PAGE
   ================================================================== */

.page-services { background: var(--cream); }

/* ---- services hero ---------------------------------------------- */
.services-hero {
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  text-align: center;
  background: var(--cream);
}

.services-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 var(--space-lg);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.services-hero__lede {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-style: normal;
  color: var(--blue);
  margin: 0 auto;
  max-width: 720px;
}

/* ---- service blocks --------------------------------------------- */
.service-list {
  background: var(--cream);
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.service {
  max-width: var(--maxw-xwide);
  margin: 0 auto var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.service:last-child { margin-bottom: 0; }

.service__name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--blue);
  margin: 0;
  text-align: right;
}

.service__body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--blue);
}

.service__body p { margin: 0 0 var(--space-md); }
.service__body p:last-child { margin-bottom: 0; }

.service-list__cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ---- "is professional editing for me?" -------------------------- */
.for-me {
  background: #B85C6A;        /* dusty rose — deeper shade for section bg */
  color: var(--cream);
  padding: var(--space-2xl) var(--space-md);
}

.for-me__inner {
  max-width: var(--maxw-xwide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.for-me__art {
  margin: 0;
}
.for-me__art img {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.for-me__text { min-width: 0; }

.for-me__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 var(--space-lg);
  color: var(--cream);
  font-variation-settings: "opsz" 144;
}

.for-me__list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0 0 var(--space-xl);
  font-family: var(--font-ui);
  font-size: 1.125rem;
  line-height: 1.55;
}

.for-me__list li {
  margin-bottom: var(--space-md);
}

/* button override — cream on dusty rose background */
.for-me .btn--primary {
  background: var(--cream);
  color: #B85C6A;
}
.for-me .btn--primary:hover,
.for-me .btn--primary:focus-visible {
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}


/* ==================================================================
   CONTACT PAGE
   ================================================================== */

.page-contact { background: var(--olive); }

/* ---- next steps ------------------------------------------------- */
.next-steps {
  background: var(--olive);
  padding: var(--space-xl) var(--space-md);
}

.next-steps__inner {
  max-width: var(--maxw-xwide);
  margin: 0 auto;
}

.next-steps__card {
  background: var(--blue);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.next-steps__card-text {
  min-width: 0;
}

.next-steps__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0 0 var(--space-lg);
  font-variation-settings: "opsz" 144;
}

.next-steps__list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--cream);
}

.next-steps__list li {
  margin-bottom: var(--space-md);
}

.next-steps__list a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.next-steps__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-steps__art img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius-lg);
}

.next-steps__art-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  max-height: 420px;
  border: 2px dashed rgba(255, 253, 212, 0.5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 253, 212, 0.7);
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
}

/* ---- more from carolyn ------------------------------------------ */
.more {
  position: relative;
  isolation: isolate;
  padding: var(--space-2xl) var(--space-md);
  overflow: hidden;
}

.more__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.more__inner {
  max-width: var(--maxw-xwide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.more__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: var(--blue);
  border-radius: var(--radius-pill);
  padding: 0.5em 1.25em;
  margin: 0 auto;
  display: inline-block;
  justify-self: start;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-variation-settings: "opsz" 144;
}

.more__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.more__books {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  align-items: end;
  width: 100%;
  will-change: transform;
  transition: transform 0.4s ease;
  padding-bottom: 0.5rem;
}

.more__books::-webkit-scrollbar { display: none; }

.more__books li {
  flex: 0 0 calc((100% - 6 * clamp(0.5rem, 1.5vw, 1.25rem)) / 7);
  display: flex;
  justify-content: center;
}

.more__books img {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.more__books li:hover img {
  transform: translateY(-4px);
}

.more__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.more__nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
}

.more__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.more__nav--prev { left: 6px; }
.more__nav--next { right: 6px; }

@media (max-width: 540px) {
  /* drop the side-gutter padding on very narrow screens and hide arrows */
  .more__carousel { padding: 0; }
  .more__nav { display: none; }
}

.more__social {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.more__social-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.more__social img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.more__social--linkedin svg {
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.more__social:hover img,
.more__social:hover svg { transform: translateY(-2px) scale(1.04); }


/* ==================================================================
   PAGE-SPECIFIC RESPONSIVE
   ================================================================== */

@media (max-width: 880px) {
  .service {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .service__name { text-align: left; }

  .next-steps__card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .next-steps__art-placeholder {
    aspect-ratio: 1.4 / 1;
    max-height: 280px;
  }

  .for-me__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .for-me__art {
    text-align: center;
  }
  .for-me__art img { max-width: 360px; }

  .more__books {
    gap: var(--space-sm);
  }
  .more__books li {
    flex: 0 0 calc((100% - 3 * var(--space-sm)) / 4);
  }
}

@media (max-width: 540px) {
  .more__books li {
    flex: 0 0 calc((100% - 2 * var(--space-sm)) / 3);
  }
}
