/* Carol Publishing — all @media breakpoints (desktop-first, max-width queries) */
/* Section-level column layouts (container/row/col-*) are handled by Bootstrap's own
   responsive grid classes in the markup — only non-grid, content-level rules live here. */

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-video {
    display: none;
  }
}

/* Sticky-on-scroll visuals only make sense once their row is a real side-by-side layout
   (Bootstrap's lg grid, >=992px) — scoping them to min-width avoids the old bug where a
   max-width override had to race a base "position:sticky" rule at equal specificity. */
@media (min-width: 992px) {
  .about-image {
    position: sticky;
    top: 130px;
  }

  .why-sticky {
    position: sticky;
    top: 130px;
  }

  /* All 6 featured books are visible at once at this breakpoint (see the Swiper
     "992: { slidesPerView: 6 }" breakpoint in functions.js) — dots would have nothing to
     paginate, so hide them once the slider stops needing to swipe. */
  .featured-books-pagination {
    display: none;
  }
}

/* All 6 service cards sit in one 3x2 grid from md up (see the Swiper Grid-module
   "768: { slidesPerView: 3, grid: { rows: 2 } }" breakpoint in functions.js) — same reasoning
   as the featured-books dots above, just at Bootstrap's own md breakpoint for this grid. */
@media (min-width: 768px) {
  .service-cards-pagination {
    display: none;
  }
}

/* responsive cs.s */
@media screen and (max-width: 1601px) {}

@media screen and (max-width: 1537px) {}

@media screen and (max-width: 1441px) {
  h1 {
    font-size: 70px;
    margin-bottom: 10px;
  }

  .hero-copy {
    font-size: clamp(1.06rem, 1.5vw, 1rem);
  }

  .hero .eyebrow {
    margin-bottom: 15px;
  }

  .hero-inner {
    padding: 90px 0 90px;
  }

  .featured-books {
    padding: 70px 0 70px;
  }

  .section {
    padding: 80px 0;
  }

  h2 {
    font-size: 50px;
  }
}

@media screen and (max-width: 1367px) {
  h2 {
    font-size: 45px;
  }

  .lead {
    font-size: clamp(1rem, 1.4vw, 1rem);
    line-height: 1.60;
  }

  h3 {
    font-size: 35px;
    line-height: 1.05;
    margin-bottom: 8px;
  }

  .service-copy .service-index {
    margin-bottom: 15px;
  }

  .service-list {
    gap: 7px 19px;
    margin: 5px 0 18px;
    font-size: 12px;
  }

  .service-media {
    min-height: 640px;
  }

  .section_about h2 {
    font-size: 40px;
  }

  .testimonial-slide blockquote {
    margin: 8px 0 10px;
  }

  .testimonials-section .narrow {
    margin-bottom: 36px;
  }

  .featured-book-copy {
    font-size: 11px;
  }

  h1 {
    font-size: 60px;
    margin-bottom: 5px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero .actions {
    margin-top: 16px;
  }

  .btn {
    min-height: 45px;
    padding: 0 19px;
  }

  .hero-inner {
    padding: 70px 0 70px;
  }

  .brands-strip-list li {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .service-card h4 {
    font-size: 20px;
  }

  .service-card .text-link {
    margin-top: 10px;
  }

  .service-card .icon {
    margin-bottom: 24px;
  }

  .value-item strong {
    font-size: 15px;
    margin-bottom: 0px;
  }

  .value-item span {
    font-size: 11px;
  }

  .value-item {
    padding: 18px 15px;
  }

  .hero_inner-service h1 {
    font-size: 50px;
    margin-bottom: 10px;
  }

  .hero_inner-fiction h1 {
    font-size: 50px;
    margin-bottom: 10px;
  }

  .hero-form-card h4 {
    font-size: 18px;
  }

  .hero-form-head {
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-form-card {
    padding: 28px;
  }

  input,
  select,
  textarea {
    padding: 8px 12px;
    font-size: 14px;
  }

  input::placeholder,
  select::placeholder,
  textarea::placeholder {
    padding: 8px 12px;
    font-size: 14px;
  }

  label {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .about-checklist li {
    gap: 10px;
    font-size: 13px;
  }

  .hero-check-icon {
    width: 16px;
    height: 16px;
  }

  .process-step h4 {
    font-size: 20px;
  }

  .hero.hero_inner-fiction {
    padding: 0px 0px;
  }
}

@media screen and (max-width: 1281px) {}

@media screen and (max-width: 1180px) {
  .stepper-item {
    border-radius: 10px;
    padding: 24px 12px;
    flex: 0 0 65px;
  }

  .stepper-item:focus-within,
  .stepper-item.is-active {
    flex-basis: 350px;
    padding: 26px 25px;
  }
}

@media (max-width: 1080px) {
  header {
    position: static;
    background: var(--paper);
    backdrop-filter: none;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu-overlay,
  .mobile-menu {
    display: block;
  }

  .side-cta-group {
    display: none;
  }

  .feature-service .row {
    display: block;
  }

  .feature-service .row>[class*="col-"] {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .narrow {
    width: min(100% - 36px, var(--max));
  }

  .section {
    padding: 50px 16px;
  }

  .section-sm {
    padding: 64px 0;
  }

  .announcement {
    display: none;
  }

  .hero-service-index {
    font-size: 8rem;
    right: -4%;
  }

  .service-about-visual {
    max-width: 340px;
    margin-top: 20px;
  }

  .service-about-badge {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    right: -10px;
    bottom: -10px;
  }

  .banner-form-frame {
    inset: 10px 10px -10px -10px;
  }

  .stepper-row {
    flex-direction: column;
    min-height: 0;
    gap: 10px;
  }

  .stepper-item {
    flex-basis: auto !important;
    width: 100%;
    border-radius: 14px !important;
    padding: 20px 22px !important;
  }

  .stepper-number {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
    font-size: 1.5rem;
    text-align: left;
  }

  .stepper-content {
    margin-top: 0 !important;
  }

  .stepper-item:focus-within .stepper-content,
  .stepper-item.is-active .stepper-content {
    margin-top: 18px !important;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .hero-inner {
    padding: 76px 0 56px;
  }

  h1 {
    font-size: 45px;
  }

  .value-item {
    border-bottom: 1px solid var(--line-dark);
  }

  .service-media {
    min-height: 430px;
  }

  .service-copy {
    padding: 52px 28px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 500px;
  }

  .about-badge {
    right: 18px;
    bottom: 18px;
    width: 150px;
    height: 150px;
  }

  .full-form {
    grid-template-columns: 1fr;
  }

  .full-form .full {
    grid-column: auto;
  }

  .testimonial-viewport {
    gap: 12px;
  }

  .testimonial-nav {
    width: 42px;
    height: 42px;
  }

  .testimonial-nav svg {
    width: 16px;
    height: 16px;
  }

  .hero-pillars {
    margin-top: 34px;
    padding-top: 26px;
    gap: 22px 0;
  }

  .hero-pillar {
    flex: 1 1 100%;
    max-width: none;
    border-left: 0;
    padding: 0;
  }

  .about-banner {
    height: 34vh;
    min-height: 220px;
  }

  h2 {
    font-size: 35px;
  }

  .value-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .value-card p {
    font-size: 12px;
  }

  .value-card {
    padding: 20px 20px;
  }
}

@media (max-width: 560px) {
  .hero-checklist {
    grid-template-rows: none;
    grid-auto-flow: row;
    margin: 13px 0 6px;
  }

  .subservices-swiper .swiper-slide {
    width: 250px;
  }

  .subservice-card {
    min-height: 280px;
    padding: 30px 24px 26px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-type strong {
    font-size: .84rem;
  }

  .brand-type span {
    font-size: .54rem;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero .actions {
    flex-direction: column;
  }

  .hero .actions .btn {
    width: 100%;
  }

  .featured-book-media {
    padding: 16px 18px 0;
  }

  .featured-book-card::before {
    top: 136px;
  }

  .value-item {
    border-left: 0;
  }

  .genre {
    min-height: 100px;
    padding: 16px;
  }

  .team-card {
    padding: 14px 14px 24px;
  }

  .team-photo-wrap {
    padding: 14px;
  }

  .team-name {
    font-size: 1.6rem;
  }

  .portfolio-book {
    width: 90%;
  }

  .why-item {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }

  .form-panel,
  .cta-card {
    padding: 26px 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .testimonial-nav {
    display: none;
  }

  .hero-inner {
    padding: 60px 20px 56px;
  }

  h1 {
    font-size: 35px;
  }

  h2 {
    font-size: 25px;
  }

  .lead {
    font-size: 13px;
  }

  .featured-books-intro {
    margin: 0 auto 25px;
  }

  .featured-books {
    padding: 40px 0 50px;
  }

  .why-item h4 {
    font-size: 20px;
    margin: 0 0 8px;
  }

  .process-step h4 {
    font-size: 20px;
  }

  .process-step .num {
    font-size: 30px;
  }

  .process-head {
    margin-bottom: 40px;
  }

  .genre span {
    font-size: 16px;
  }

  .section_about h2 {
    font-size: 25px;
  }

  .portfolio-head {
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 35px;
  }

  summary {
    padding: 20px 30px 20px 0;
    font-size: 16px;
  }

  .hero-pillars-2 .hero-pillar strong {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .hero-pillar span {
    font-size: 10px;
  }

  .hero-pillars-2 .hero-pillar {
    padding: 0 5px;
  }

  .btn {
    font-size: 12px;
    width: 100%;
  }

  .hero_inner-service h1 {
    font-size: 35px;
    margin-bottom: 10px;
  }

  .hero_inner-fiction h1 {
    font-size: 35px;
    margin-bottom: 10px;
  }
  .hero.hero_inner-fiction .inner-ghostwriting-banner-book{
    width: 100%;
  }
}