/* =========================================
   Responsive Styles - BeaconRidge
   Breakpoints: 1400 / 1200 / 992 / 768 / 576
   All @media rules live here (not in style.css)
========================================= */

/* ---------- XL desktops ---------- */
@media (max-width: 1399.98px) {
  .hero-title {
    font-size: 52px;
    line-height: 60px;
  }

  .marquee-item {
    font-size: 35px;
  }

  .excellence-card-title {
    font-size: 20px;
  }

  .excellence-label {
    font-size: 14px;
  }

  .cta-title {
    font-size: 32px;
  }

  .get-started-sidebar-title {
    font-size: 40px;
  }

  .get-started-form textarea.form-control {
    height: 250px;
  }

  .portfolio-prev {
    left: max(8px, calc((100% - min(1140px, 100% - 24px)) / 2 - 80px));
  }

  .portfolio-next {
    right: max(8px, calc((100% - min(1140px, 100% - 24px)) / 2 - 80px));
  }
}

/* ---------- Large tablets / small desktops ---------- */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 40px;
    line-height: 48px;
  }

  .hero-author {
    height: 480px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-banner-bg {
    height: 100%;
  }

  .marquee-item {
    font-size: 33px;
    padding: 0 36px;
  }

  .excellence-card-media {
    max-width: 190px;
  }

  .site-header .nav-link {
    font-size: 16px;
    padding: 8px !important;
  }

  .header-logo {
    width: 160px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-card-sales {
    top: 10%;
  }

  .distribution-list li {
    font-size: 13px;
  }

  .why-card-title {
    font-size: 18px;
  }

  .why-card-text {
    font-size: 13px;
    line-height: 22px;
  }

  .why-card {
    padding: 20px;
  }

  .about-title {
    line-height: 48px;
  }

  .services-header {
    max-width: 540px;
  }

  .cta-title {
    font-size: 28px;
  }

  .get-started-sidebar-title {
    font-size: 32px;
    line-height: 40px;
  }

  .get-started-form textarea.form-control {
    height: 220px;
  }

  .get-started-form .form-control {
    height: 54px;
  }

  .portfolio-prev {
    left: max(8px, calc((100% - min(960px, 100% - 24px)) / 2 - 72px));
  }

  .portfolio-next {
    right: max(8px, calc((100% - min(960px, 100% - 24px)) / 2 - 72px));
  }

  .portfolio-slider:not(.slick-initialized) .portfolio-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .portfolio-slider:not(.slick-initialized) .portfolio-slide:nth-child(n + 4) {
    display: none;
  }
}

/* ---------- Tablets ---------- */
@media (max-width: 991.98px) {
  :root {
    --title-size: clamp(40px, 3.2vw, 50px);
  }

  .site-header .offcanvas-body .navbar-nav {
    margin-bottom: 1.25rem !important;
  }

  .site-header .offcanvas-body .nav-link {
    padding: 0.85rem 0 !important;
    font-size: 17px;
    border-bottom: 1px solid rgba(0, 25, 98, 0.06);
  }

  .site-header .offcanvas-body .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .site-header .offcanvas-body .btn-header-cta {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
    white-space: normal;
  }

  .hero-banner {
    padding: 120px 0 30px;
  }

  .page-hero,
  .error-section {
    padding-top: 200px;
  }

  .legal-toc {
    position: static;
  }

  .lead-modal-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lead-modal-aside {
    padding: 28px 24px 22px;
  }

  .lead-modal-aside-text {
    max-width: none;
    margin-bottom: 16px;
  }

  .lead-modal-form-wrap {
    padding: 24px 22px 28px;
  }

  .hero-banner-bg {
    display: none;
  }

  .hero-banner .row {
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .header-logo {
    width: 180px;
}

header.site-header .container {
    align-items: center !important;
}

body::before {
    display: none;
}

.hero-title br {
    display: none;
}

  .hero-title {
    font-size: 50px;
    line-height: 55px;
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 10px;
  }

  .hero-author {
    height: 400px;
  }

  .hero-card-sales {
    top: 12%;
    right: 0;
  }

  .hero-card-retail {
    bottom: 8%;
    left: 0;
  }

  .distribution-strip {
    overflow: hidden;
  }

  .distribution-marquee {
    max-width: none;
    padding: 0;
  }

  .distribution-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-slide 28s linear infinite;
  }

  .distribution-marquee-track .distribution-list,
  .distribution-marquee-track .distribution-list:last-child {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    width: max-content;
  }

  .distribution-list li {
    padding: 0 28px;
    white-space: nowrap;
  }

  .distribution-strip:hover .distribution-marquee-track {
    animation-play-state: paused;
  }

  .about-content {
    padding-left: 0;
  }

  .process-timeline::before {
    display: none;
  }

  .process-step-text {
    max-width: 100%;
  }

  /* Why / Services / Process / Reviews — slider below 992 */
  .why-slider,
  .services-slider,
  .process-slider,
  .reviews-slider {
    display: block;
    gap: 0;
    margin: 0 -12px;
  }

  .why-slider:not(.slick-initialized),
  .services-slider:not(.slick-initialized),
  .process-slider:not(.slick-initialized),
  .reviews-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
  }

  .why-slider:not(.slick-initialized) .why-slide,
  .services-slider:not(.slick-initialized) .services-slide,
  .process-slider:not(.slick-initialized) .process-slide,
  .reviews-slider:not(.slick-initialized) .reviews-slide {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
  }

  .why-slider:not(.slick-initialized) .why-slide:nth-child(n + 3),
  .services-slider:not(.slick-initialized) .services-slide:nth-child(n + 3),
  .process-slider:not(.slick-initialized) .process-slide:nth-child(n + 3),
  .reviews-slider:not(.slick-initialized) .reviews-slide:nth-child(n + 3) {
    display: none;
  }

  .why-slide,
  .services-slide,
  .process-slide,
  .reviews-slide {
    padding: 0 12px;
    box-sizing: border-box;
  }

  .why-slider .slick-track,
  .services-slider .slick-track,
  .process-slider .slick-track,
  .reviews-slider .slick-track {
    display: flex !important;
    align-items: stretch;
  }

  .why-slider .slick-slide,
  .services-slider .slick-slide,
  .process-slider .slick-slide,
  .reviews-slider .slick-slide {
    height: auto;
    float: none;
  }

  .why-slider .slick-slide > div,
  .services-slider .slick-slide > div,
  .reviews-slider .slick-slide > div {
    height: 100%;
  }

  .process-slider .slick-track {
    align-items: flex-start;
  }

  .process-slider .slick-slide > div {
    height: auto;
  }

  .process-slider .process-step {
    display: block;
    height: auto;
  }

  .process-slider .process-number {
    width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }

  .process-slider .process-step-title {
    display: block;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .process-slider .process-step-text {
    display: block;
    color: #94A3B8;
    -webkit-text-fill-color: #94A3B8;
  }

  .cta-content {
    max-width: 100%;
    text-align: center;
    padding: 10px 0 24px;
  }

  .cta-actions {
    justify-content: center;
  }

  .cta-books {
    max-width: 400px;
    margin-right: 0;
    width: 100%;
    transform: scale(1.05);
    transform-origin: bottom center;
  }

  .faq-image {
    max-width: 100%;
  }

  .get-started-form-wrap {
    padding: 28px 22px;
  }

  .excellence-card {
    gap: 16px;
  }

  .portfolio-prev {
    left: 8px;
  }

  .portfolio-next {
    right: 8px;
  }

  .portfolio-slider:not(.slick-initialized) .portfolio-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .portfolio-slider:not(.slick-initialized) .portfolio-slide:nth-child(n + 3) {
    display: none;
  }

  .testimonials-slider:not(.slick-initialized) .testimonials-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .testimonials-slider:not(.slick-initialized) .testimonials-slide:nth-child(n + 3) {
    display: none;
  }

  .excellence-slider {
    display: block;
    margin: 0 -12px;
  }

  .excellence-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
  }

  .excellence-slider:not(.slick-initialized) .excellence-slide {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .excellence-slider:not(.slick-initialized) .excellence-slide:nth-child(n + 2) {
    display: none;
  }

  .excellence-slide {
    padding: 0 12px;
  }

  .excellence-slider .slick-track {
    display: flex !important;
  }

  .excellence-slider .slick-slide {
    height: auto;
  }

  .excellence-slider .slick-slide > div {
    height: 100%;
  }

  .why-slider .slick-dots,
  .services-slider .slick-dots,
  .process-slider .slick-dots,
  .excellence-slider .slick-dots,
  .reviews-slider .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
  }

  .why-slider .slick-dots li,
  .services-slider .slick-dots li,
  .process-slider .slick-dots li,
  .excellence-slider .slick-dots li,
  .reviews-slider .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
  }

  .why-slider .slick-dots li button,
  .services-slider .slick-dots li button,
  .process-slider .slick-dots li button,
  .excellence-slider .slick-dots li button,
  .reviews-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 25, 98, 0.2);
    border: none;
    font-size: 0;
    line-height: 0;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .process-slider .slick-dots li button {
    background: rgba(255, 255, 255, 0.35);
  }

  .why-slider .slick-dots li button:before,
  .services-slider .slick-dots li button:before,
  .process-slider .slick-dots li button:before,
  .excellence-slider .slick-dots li button:before,
  .reviews-slider .slick-dots li button:before {
    display: none;
  }

  .why-slider .slick-dots li.slick-active button,
  .services-slider .slick-dots li.slick-active button,
  .process-slider .slick-dots li.slick-active button,
  .excellence-slider .slick-dots li.slick-active button,
  .reviews-slider .slick-dots li.slick-active button {
    background: var(--color-red-dark);
    transform: scale(1.15);
  }

  .cta-section {
    padding: 56px 0 0;
    overflow-x: hidden;
  }

  .cta-section .row {
    min-height: 0;
    align-items: center;
  }

  .cta-visual {
    justify-content: center;
    align-items: flex-end;
    min-height: 280px;
    margin-top: 8px;
  }
}

/* ---------- Mobile landscape / large phones ---------- */
@media (max-width: 767.98px) {
  .header-logo {
    width: 150px;
  }

  .hero-banner {
    padding: 110px 0 24px;
  }

  .page-hero,
  .error-section {
    padding-top: 110px;
  }

  .page-section {
    padding: 48px 0 64px;
  }

  .about-cta-section {
    padding: 24px 0 56px;
  }

  .about-cta-panel {
    padding: 36px 22px;
    border-radius: 18px;
  }

  .publishing-callout {
    padding: 28px 20px;
  }

  .about-audience-card {
    min-height: 76px;
    font-size: 14px;
  }

  .about-hero-form-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

  .about-hero-form-title {
    font-size: 22px;
  }

  .about-hero-field-row {
    grid-template-columns: 1fr;
  }

  .about-side-media-img,
  .about-cta-media-img {
    min-height: 260px;
  }

  .about-cta-content,
  .about-mission {
    text-align: left;
  }

  .about-cta-actions {
    justify-content: flex-start;
  }

  .legal-toc {
    position: static;
    margin-bottom: 8px;
  }

  .legal-toc-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .legal-document {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .legal-block h2 {
    font-size: 20px;
  }

  .legal-hero-lead {
    font-size: 16px;
  }

  .legal-contact-card {
    padding: 18px 16px;
  }

  .reviews-hero-stats {
    gap: 16px 24px;
  }

  .reviews-stat strong {
    font-size: 24px;
  }

  .lead-modal-field-row {
    grid-template-columns: 1fr;
  }

  .lead-modal-aside-title {
    font-size: 24px;
  }

  .hero-banner-bg {
    height: 45%;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-author {
    height: 320px;
  }

  .hero-card {
    min-width: 160px;
    padding: 10px 12px;
  }

  .hero-card-text strong {
    font-size: 12px;
  }

  .hero-card-text span {
    font-size: 11px;
  }

  .hero-trust {
    flex-wrap: wrap;
  }

  .distribution-strip {
    padding: 20px 0;
  }

  .distribution-list li {
    font-size: 14px;
    padding: 0 22px;
  }

  .counter-section {
    padding: 36px 0;
  }

  .counter-number {
    font-size: 32px;
  }

  .counter-label {
    font-size: 13px;
  }

  .counter-row .col-6:nth-child(2)::after {
    display: none;
  }

  .why-section,
  .about-section,
  .services-section,
  .process-section,
  .portfolio-section,
  .testimonials-section,
  .excellence-section,
  .faq-section,
  .get-started-section {
    padding: 56px 0;
  }

  .why-header,
  .services-header,
  .portfolio-header,
  .testimonials-header,
  .excellence-header,
  .get-started-header {
    margin-bottom: 32px;
  }

  .why-title,
  .about-subtitle,
  .about-title,
  .services-title,
  .process-title,
  .portfolio-title,
  .testimonials-title,
  .excellence-title,
  .faq-title,
  .get-started-title,
  .cta-title {
    font-size: 35px;
    line-height: 42px;
  }

  .about-gallery,
  .about-gallery-row {
    gap: 10px;
  }

  .about-img-wide,
  .about-img-narrow {
    min-height: 150px;
    height: 150px;
  }

  .about-actions .btn {
    width: 100%;
    text-align: center;
  }

  .marquee-section {
    padding: 16px 0;
  }

  .marquee-item {
    font-size: 28px;
    padding: 0 24px;
  }



  .process-header {
    margin-bottom: 36px;
  }

  .portfolio-arrow {
    display: none;
  }

  .portfolio-slide {
    padding: 0 6px;
  }

  .portfolio-slider .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
  }

  .portfolio-slider .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
  }

  .portfolio-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 25, 98, 0.2);
    border: none;
    font-size: 0;
    line-height: 0;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .portfolio-slider .slick-dots li button:before {
    display: none;
  }

  .portfolio-slider .slick-dots li.slick-active button {
    background: var(--color-red-dark);
    transform: scale(1.15);
  }

  .excellence-card {
    flex-direction: column-reverse;
  }

  .excellence-card-media {
    flex: none;
    max-width: none;
    width: 100%;
    height: 160px;
  }

  .excellence-card-media img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .cta-section {
    padding: 48px 0 0;
  }

  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cta-books {
    max-width: 490px;
    transform: none;
  }

  .get-started-sidebar {
    padding: 28px 22px;
  }

  .get-started-form .form-control {
    height: 56px;
  }

  .get-started-form textarea.form-control {
    min-height: 140px;
  }
  .get-started-sidebar-image img {
    height: 400px;
    object-position: top;
}

  .site-footer {
    padding-top: 56px;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 40px;
    flex-direction: column;
    gap: 10px;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-logo img {
    max-width: 150px;
  }

  .counter-row .col-6:nth-child(1)::after,
  .counter-row .col-6:nth-child(3)::after {
    display: block;
  }

  .counter-item {
    padding: 18px 10px;
  }

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

  .why-header {
    margin-bottom: 32px;
  }

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

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

  .services-header {
    margin-bottom: 32px;
  }

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

  .portfolio-header {
    margin-bottom: 32px;
  }

  .portfolio-slider {
    margin: 0 -6px;
  }

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

  .testimonials-header {
    margin-bottom: 32px;
  }

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

  .excellence-header {
    margin-bottom: 32px;
  }

  .cta-visual {
    min-height: 240px;
  }

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

  .get-started-section {
    padding: 56px 0;
  }

  .get-started-header {
    margin-bottom: 32px;
  }

  .portfolio-slider:not(.slick-initialized) .portfolio-slide,
  .testimonials-slider:not(.slick-initialized) .testimonials-slide,
  .why-slider:not(.slick-initialized) .why-slide,
  .services-slider:not(.slick-initialized) .services-slide,
  .process-slider:not(.slick-initialized) .process-slide,
  .reviews-slider:not(.slick-initialized) .reviews-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .portfolio-slider:not(.slick-initialized) .portfolio-slide:nth-child(n + 2),
  .testimonials-slider:not(.slick-initialized) .testimonials-slide:nth-child(n + 2),
  .why-slider:not(.slick-initialized) .why-slide:nth-child(n + 2),
  .services-slider:not(.slick-initialized) .services-slide:nth-child(n + 2),
  .process-slider:not(.slick-initialized) .process-slide:nth-child(n + 2),
  .reviews-slider:not(.slick-initialized) .reviews-slide:nth-child(n + 2) {
    display: none;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 575.98px) {
  .legal-toc-nav {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 22px 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-badge,
  .section-badge {
    font-size: 12px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-author {
    height: 280px;
  }

  .hero-card-sales,
  .hero-card-retail {
    position: absolute;
    transform: scale(0.9);
  }

  .counter-item {
    padding: 14px 8px;
  }

  .counter-number {
    font-size: 28px;
  }

  .why-title,
  .about-subtitle,
  .about-title,
  .services-title,
  .process-title,
  .portfolio-title,
  .testimonials-title,
  .excellence-title,
  .faq-title,
  .get-started-title,
  .cta-title {
    font-size: 24px;
  }

  .marquee-item {
    font-size: 22px;
    padding: 0 18px;
  }

  .service-card,
  .why-card,
  .testimonial-card {
    padding: 22px 18px;
  }

  .about-img-wide,
  .about-img-narrow {
    min-height: 120px;
    height: 120px;
  }

  .faq-accordion .accordion-button {
    font-size: 15px;
    padding-right: 28px;
  }

  .get-started-form-wrap {
    padding: 22px 16px;
  }

  .get-started-sidebar-title {
    font-size: 22px;
  }

  .btn-header-cta,
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-cta-primary,
  .btn-cta-secondary,
  .btn-submit-request {
    font-size: 14px;
  }

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

  .process-header {
    margin-bottom: 36px;
  }
}
