/* ============================================================
   RESPONSIVE.CSS - Breakpoints & Media Queries
   Premium Accountancy Website
   ============================================================ */

/* -------- TABLET (768px+) -------- */
@media (min-width: 768px) {

  /* Navigation */
  .nav__menu {
    display: flex;
  }

  .nav__phone {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  /* Hero */
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(100vh - var(--nav-height));
    justify-items: start;
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__visual {
    display: block;
    justify-self: end;
  }

  .hero__scroll-indicator {
    bottom: 28px;
  }

  /* Pain Points */
  .pain__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* Services */
  .services__card {
    padding: 1.45rem 1.35rem;
  }

  /* Founder spotlight */
  .founder-spotlight__container {
    grid-template-columns: minmax(220px, 330px) 1fr;
    gap: 2.25rem;
  }

  .founder-spotlight__media {
    justify-content: flex-start;
  }

  .founder-spotlight__content {
    text-align: left;
  }

  .founder-spotlight__text {
    margin-left: 0;
    margin-right: 0;
  }

  .founder-spotlight__bio p {
    margin-left: 0;
    margin-right: 0;
  }

  .founder-spotlight__badges,
  .founder-spotlight__actions {
    justify-content: flex-start;
  }

  /* Framework */
  .framework__cta {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .framework__cta p {
    max-width: 560px;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why */
  .why__card {
    padding-right: 0.35rem;
  }

  /* Process & Framework */
  .process__line,
  .framework__line {
    left: 24px;
  }

  /* Pricing */
  .pricing__grid {
    gap: 1rem;
  }

  .pricing__card {
    grid-template-columns: minmax(220px, 1.3fr) minmax(130px, 0.8fr) minmax(210px, 1fr);
    gap: 1.25rem;
    padding: 1.2rem 1.35rem;
  }

  .pricing__card .btn {
    width: 260px;
    min-width: 260px;
    justify-self: end;
  }

  /* Blog */
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team */
  .team__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  /* Contact */
  .contact__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .contact__form {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
  }

  .form__group--full {
    grid-column: 1 / -1;
  }

  .contact__form .btn {
    grid-column: 1 / -1;
  }

  .contact__form .form__disclaimer {
    grid-column: 1 / -1;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* -------- TABLET / SMALL DESKTOP TUNING (768px - 1279px) -------- */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero__scroll-text {
    display: none;
  }
}

/* -------- LARGE DESKTOP (1024px+) -------- */
@media (min-width: 1024px) {

  /* Services layout */
  .services__layout {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
    gap: 2.5rem;
    align-items: start;
  }

  .services__header {
    position: sticky;
    top: calc(var(--nav-height) + 1.4rem);
    text-align: left;
  }

  .services__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .founder-spotlight__container {
    gap: 3rem;
  }

  .founder-spotlight__image-wrap {
    width: min(100%, 360px);
  }

  .services__card:nth-child(even) {
    transform: none;
  }

  .services__card:nth-child(even):hover {
    transform: translateX(4px);
  }

  /* Custom cursor on desktop */
  .custom-cursor {
    display: block;
  }

  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------- MID DESKTOP (below 1200px) -------- */
@media (max-width: 1199px) {
  .hero__card--float {
    display: none;
  }
}

/* -------- EXTRA LARGE (1280px+) -------- */
@media (min-width: 1280px) {

  .hero__container {
    gap: 4rem;
  }

  .hero__card--main {
    max-width: 420px;
  }

  .services__card {
    padding: 1.5rem 1.45rem;
  }

  .pricing__card {
    padding: 1.25rem 1.45rem;
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------- MOBILE ONLY (below 768px) -------- */
@media (max-width: 767px) {

  /* Mobile sticky CTA */
  .mobile-cta {
    display: flex;
  }

  /* Back to top position adjustment - above mobile CTA */
  .back-to-top {
    bottom: 6rem;
    right: 1rem;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
  }

  .hero__container {
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero__content {
    padding-top: 1rem;
    text-align: center;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .hero__visual {
    display: flex;
    justify-content: center;
  }

  .hero__card--main {
    max-width: 100%;
    width: 100%;
  }

  .framework__cta .btn {
    width: 100%;
  }

  .founder-spotlight__actions .btn {
    width: 100%;
  }

  .trust__platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust__platform {
    min-height: 120px;
    padding: 0.95rem;
  }

  .trust__platform-title {
    font-size: 0.95rem;
  }

  .trust__platform-subword,
  .trust__platform-link {
    font-size: 0.8rem;
  }

  /* Testimonial card */
  .testimonials__card {
    padding: 2rem 1.5rem;
  }

  .testimonials__text {
    font-size: 1rem;
  }

  .reviews__summary {
    justify-content: flex-start;
  }

  /* Pricing cards stack */
  .pricing__grid {
    gap: 1rem;
  }

  .pricing__card {
    grid-template-columns: 1fr;
  }

  .pricing__card .btn {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .pricing__includes {
    align-items: flex-start;
  }

  .pricing__includes-list {
    justify-content: flex-start;
  }

  /* Process & framework timeline */
  .process__step,
  .framework__step {
    gap: 1.25rem;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Contact form */
  .contact__form {
    padding: 2rem 1.5rem;
  }

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

}

/* -------- SMALL MOBILE (below 400px) -------- */
@media (max-width: 399px) {

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .trust__platform-grid {
    grid-template-columns: 1fr;
  }

}

/* -------- TALL VIEWPORTS -------- */
@media (min-height: 900px) and (min-width: 768px) {
  .hero__container {
    padding-top: 2rem;
  }
}

/* No hover (touch) - remove hover transforms */
@media (hover: none) {
  .services__card:hover,
  .pricing__card:hover,
  .why__card:hover,
  .pain__card:hover {
    transform: none;
  }

  .why__card:hover {
    padding-left: 4.6rem;
    background: transparent;
  }
}

/* -------- PRINT STYLES -------- */
@media print {
  .nav,
  .preloader,
  .mobile-menu,
  .mobile-cta,
  .back-to-top,
  .hero__scroll-indicator,
  .hero__shapes,
  .btn__shimmer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero__bg {
    display: none;
  }

  .hero__title,
  .hero__subtitle {
    color: black;
  }

  section {
    padding: 2rem 0;
    break-inside: avoid;
  }
}
