/**
 * Feldheim Publishers — responsive overrides (loaded after style.css).
 * Section 1: site-wide layout / mobile fixes.
 * Section 2: @media rules moved from style.css (unchanged).
 */

/* --- Section 1: site-wide responsive ----------------------------------- */

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

body {
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1199.98px) {
  .navbar-brand img {
    width: clamp(140px, 28vw, 200px);
  }

  .authorship-decor--left,
  .authorship-decor--right {
    max-width: min(200px, 26vw);
  }
}

@media (max-width: 991.98px) {
  .top-bar .row > [class*="col-"] {
    justify-content: center !important;
  }

  .top-bar .d-flex {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 0.65rem 1rem !important;
    row-gap: 0.5rem;
  }

  .top-bar a {
    font-size: 12px;
  }

  .top-bar__text {
    word-break: break-word;
    text-align: center;
  }

  .site-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .site-header .navbar-nav .nav-link:hover,
  .site-header .navbar-nav .nav-link:focus {
    color: #fff !important;
  }

  .site-header .navbar-nav .nav-link.active {
    color: var(--brand-purple) !important;
  }

  .site-header .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .site-header .services-dropdown {
    margin-top: 0;
    border-radius: 0.35rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
  }

  .site-header .services-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .site-header .services-dropdown .dropdown-item:hover,
  .site-header .services-dropdown .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .site-header .btn-primary-brand.phone-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    text-align: center;
  }

  .banner-home {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .banner-home .swiper {
    width: 100%;
    position: relative;
  }

  .banner-home .swiper-slide img {
    height: clamp(220px, 42vw, 380px);
    min-height: 200px;
  }

  .form-banner-home {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    padding: 1.25rem 0 2rem;
    background: linear-gradient(180deg, #1a1f45 0%, #101a47 100%);
  }

  .form-banner-home .container.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .form-banner-home .row {
    justify-content: center !important;
  }

  .banner-home .swiper-button-next,
  .banner-home .swiper-button-prev {
    transform: scale(0.85);
  }

  .section-space {
    padding: 56px 0;
  }

  .books-strip {
    padding-bottom: 48px !important;
    padding-top: 0 !important;
  }

  .our-services-grid > .service-card-wrap {
    transform: none !important;
  }

  .service-card {
    height: auto !important;
    min-height: 220px;
  }

  .contact-page-hero {
    min-height: clamp(380px, 58vh, 680px);
    padding: 1.75rem 0;
  }

  .contact-page-hero__inner .list-grid {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-swiper-wrap {
    margin-top: -2.5rem;
  }

  .testimonials-top {
    margin-bottom: -20px;
  }

  .digital-age-card {
    padding: 1.75rem 1rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  }

  .consult-box {
    padding: 1.25rem 1.15rem 1.75rem;
  }

  .section-default-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-default-actions .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .contact-reach__title {
    font-size: clamp(1.65rem, 6vw, 2.35rem);
    margin-bottom: 1.75rem;
  }

  .contact-reach__label {
    font-size: 1.45rem;
  }

  .contact-reach__detail,
  .contact-reach__detail a {
    font-size: 16px;
  }

  .contact-reach__card {
    padding: 1.5rem 1.15rem 1.75rem;
  }

  .trust-strip .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .trust-strip .trust-item h3 {
    text-align: center;
  }

  .our-services-title {
    font-size: clamp(1.55rem, 6vw, 2.25rem);
  }

  .our-services-lead {
    font-size: 0.9rem;
  }

  .clear-process-actions,
  .draft-cta-actions,
  .authorship-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .clear-process-actions .btn,
  .draft-cta-actions .btn,
  .authorship-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .banner-content h1 {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }

  .feld-footer__payments img {
    max-width: 100%;
    height: auto;
  }

  .feld-footer__bottom .row > [class*="col-"] {
    text-align: center;
  }

  .feld-footer__badges-row {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    padding: 8px 0;
  }

  .top-bar a .top-bar__text {
    font-size: 11px;
  }

  .site-header .navbar {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  p {
    font-size: 15px;
  }

  .btn-primary-brand,
  .btn-outline-brand-dark,
  .btn-outline-light {
    padding: 12px 18px;
    font-size: 15px;
  }

  .banner-home .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .testimonial-card {
    padding: 1.35rem 1.25rem 1.35rem 1.35rem;
  }

  .offers-form-title {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
  }

  .feld-footer__scroll-top {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-height: 520px) and (max-width: 991.98px) {
  .contact-page-hero {
    min-height: 0;
    padding: 1.25rem 0;
  }

  .hero-section:not(.banner-home) {
    min-height: 0;
  }
}

/* --- Section 2: @media blocks from style.css (verbatim) ---------------- */

@media (max-width: 767.98px) {
  .contact-page-hero__trust {
    text-align: center;
  }

  .contact-page-hero__trust .col-md-5 {
    text-align: center;
  }
}
@media (min-width: 992px) {
  .contact-reach__title {
    margin-bottom: 3rem;
  }
}
@media (min-width: 768px) {
  .feld-footer__col {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0rem 2rem;
  }

  .feld-footer__col--contact {
    border-right: none;
    padding-right: 0;
    padding-left: 2rem;
  }
}
@media (max-width: 991.98px) {
  .feld-footer__payments {
    justify-content: flex-start;
  }

  .feld-footer__badges-row {
    justify-content: flex-start;
  }
}
@media (max-width: 991px) {
  .site-header {
    position: static;
  }

  .our-services-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .clear-process-section {
    padding: 0 0 50px 0;
  }

  .site-header .navbar-toggler {
    background-color: rgba(16, 26, 71, 0.95);
  }

  .hero-section {
    padding-top: 30px;
    min-height: auto;
  }

  .phone-btn {
    font-size: 16px;
  }

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

  .list-grid p {
    font-size: 14px;
  }

  .btn-primary-brand,
  .btn-outline-brand,
  .btn-outline-brand-dark {
    font-size: 16px;
  }

  .trust-strip h3 {
    font-size: 13px;
  }

  .trust-item {
    gap: 7px;
    min-height: 36px;
  }

  .trust-item img {
    width: 28px;
  }

  .trust-item h3 {
    text-align: center;
  }

  .section-space p {
    font-size: 16px;
  }

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

  .section-default-actions .btn {
    min-width: auto;
  }

  .section-decor-right {
    width: 140px;
    right: 1%;
    bottom: 6%;
  }
}
@media (min-width: 768px) {
  .our-services-grid > .service-card-wrap {
      padding-left: 8px;
      padding-right: 8px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .our-services-grid {
      padding-top: 1rem;
      padding-bottom: 0.5rem;
  }

  .our-services-grid > .service-card-wrap:nth-child(odd) {
      transform: translateY(0);
  }

  .our-services-grid > .service-card-wrap:nth-child(even) {
      transform: translateY(-14px);
  }
}
@media (min-width: 992px) {
  .our-services-grid {
      padding-top: 3.5rem;
      padding-bottom: 1rem;
  }

  .our-services-grid > .service-card-wrap:nth-child(4n+1) {
      transform: translateY(0);
  }

  .our-services-grid > .service-card-wrap:nth-child(4n+2) {
      transform: translateY(-16px);
  }

  .our-services-grid > .service-card-wrap:nth-child(4n+3) {
      transform: translateY(-32px);
  }

  .our-services-grid > .service-card-wrap:nth-child(4n+4) {
      transform: translateY(-48px);
  }
}
@media (max-width: 767px) {
  .our-services-books-decor {
      max-width: 90px;
      top: 0.5rem;
      opacity: 0.65;
  }
}
@media (max-width: 991.98px) {
  .clear-process-decor {
    max-width: 140px;
    left: 0.5rem;
    top: 0.5rem;
    opacity: 0.75;
  }

  .clear-process-title {
    max-width: none;
  }

  .clear-process-text {
    max-width: none;
  }

  .clear-process-actions {
    justify-content: flex-start;
  }
}
@media (min-width: 992px) {
  .authorship-inner-wrap {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }
}
@media (max-width: 575.98px) {
  .authorship-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .authorship-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 992px) {
  .digital-age-inner {
    padding-top: 3.5rem;
    padding-bottom: 5.5rem;
  }
}
@media (max-width: 991.98px) {
  .digital-age-inner {
    padding-bottom: 3.5rem;
  }

  .digital-age-decor {
    right: 0;
    max-width: 140px;
    opacity: 0.65;
  }
}
@media (min-width: 992px) {
  .testimonials-top {
    padding-bottom: 5rem;
  }
}
@media (min-width: 992px) {
  .testimonials-swiper-wrap {
    margin-top: -5.5rem;
  }
}
@media (max-width: 575.98px) {
  .testimonial-avatar {
    margin-left: -1.5rem;
    width: 64px;
    height: 64px;
  }

  .testimonial-card {
    padding-left: 1.75rem;
  }
}
@media (min-width: 992px) {
  .draft-cta-title {
    max-width: none;
  }
}
@media (max-width: 991.98px) {
  .draft-cta-actions {
    justify-content: flex-start !important;
  }
}

/* Tie-break: footer payment/badge row (991.98px rules above load later than Section 1) */
@media (max-width: 767.98px) {
  .feld-footer__payments {
    justify-content: center !important;
  }

  .feld-footer__badges-row {
    justify-content: center !important;
  }
}
